From d89e630bc0cfb228db632c8b3f369f7dbd80bd02 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 7 Sep 2014 20:11:13 -0400 Subject: [PATCH] Fix test cases --- modules/ldap/{examples => _examples}/enterprise.ldif | 0 modules/ldap/{examples => _examples}/modify.go | 2 +- modules/ldap/{examples => _examples}/search.go | 2 +- modules/ldap/{examples => _examples}/searchSSL.go | 2 +- modules/ldap/{examples => _examples}/searchTLS.go | 2 +- modules/ldap/{examples => _examples}/slapd.conf | 0 modules/ldap/filter_test.go | 2 +- modules/mahonia/mahoniconv/mahoniconv.go | 3 ++- 8 files changed, 7 insertions(+), 6 deletions(-) rename modules/ldap/{examples => _examples}/enterprise.ldif (100%) rename modules/ldap/{examples => _examples}/modify.go (98%) rename modules/ldap/{examples => _examples}/search.go (96%) rename modules/ldap/{examples => _examples}/searchSSL.go (95%) rename modules/ldap/{examples => _examples}/searchTLS.go (95%) rename modules/ldap/{examples => _examples}/slapd.conf (100%) diff --git a/modules/ldap/examples/enterprise.ldif b/modules/ldap/_examples/enterprise.ldif similarity index 100% rename from modules/ldap/examples/enterprise.ldif rename to modules/ldap/_examples/enterprise.ldif diff --git a/modules/ldap/examples/modify.go b/modules/ldap/_examples/modify.go similarity index 98% rename from modules/ldap/examples/modify.go rename to modules/ldap/_examples/modify.go index 177fe8da7..cd6dfc9eb 100644 --- a/modules/ldap/examples/modify.go +++ b/modules/ldap/_examples/modify.go @@ -9,7 +9,7 @@ import ( "fmt" "log" - "github.com/juju2013/goldap" + "github.com/gogits/gogs/modules/ldap" ) var ( diff --git a/modules/ldap/examples/search.go b/modules/ldap/_examples/search.go similarity index 96% rename from modules/ldap/examples/search.go rename to modules/ldap/_examples/search.go index 59a0333dc..609256f4d 100644 --- a/modules/ldap/examples/search.go +++ b/modules/ldap/_examples/search.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/juju2013/goldap" + "github.com/gogits/gogs/modules/ldap" ) var ( diff --git a/modules/ldap/examples/searchSSL.go b/modules/ldap/_examples/searchSSL.go similarity index 95% rename from modules/ldap/examples/searchSSL.go rename to modules/ldap/_examples/searchSSL.go index a98ca3a41..aa9cbcc12 100644 --- a/modules/ldap/examples/searchSSL.go +++ b/modules/ldap/_examples/searchSSL.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/juju2013/goldap" + "github.com/gogits/gogs/modules/ldap" ) var ( diff --git a/modules/ldap/examples/searchTLS.go b/modules/ldap/_examples/searchTLS.go similarity index 95% rename from modules/ldap/examples/searchTLS.go rename to modules/ldap/_examples/searchTLS.go index a20bcc320..c771a8eda 100644 --- a/modules/ldap/examples/searchTLS.go +++ b/modules/ldap/_examples/searchTLS.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/juju2013/goldap" + "github.com/gogits/gogs/modules/ldap" ) var ( diff --git a/modules/ldap/examples/slapd.conf b/modules/ldap/_examples/slapd.conf similarity index 100% rename from modules/ldap/examples/slapd.conf rename to modules/ldap/_examples/slapd.conf diff --git a/modules/ldap/filter_test.go b/modules/ldap/filter_test.go index 9e8319595..761ff42fd 100644 --- a/modules/ldap/filter_test.go +++ b/modules/ldap/filter_test.go @@ -3,7 +3,7 @@ package ldap import ( "testing" - "github.com/johnweldon/asn1-ber" + "github.com/gogits/gogs/modules/asn1-ber" ) type compileTest struct { diff --git a/modules/mahonia/mahoniconv/mahoniconv.go b/modules/mahonia/mahoniconv/mahoniconv.go index 0242a6f57..18ccc1e6e 100644 --- a/modules/mahonia/mahoniconv/mahoniconv.go +++ b/modules/mahonia/mahoniconv/mahoniconv.go @@ -1,11 +1,12 @@ package main import ( - "code.google.com/p/mahonia" "flag" "io" "log" "os" + + "github.com/gogits/gogs/modules/mahonia" ) // An iconv workalike using mahonia.