diff options
| -rw-r--r-- | exports/exports.go | 28 | ||||
| -rw-r--r-- | internal/api/api_test.go | 3 |
2 files changed, 15 insertions, 16 deletions
diff --git a/exports/exports.go b/exports/exports.go index 55907e7..1e496f8 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -675,7 +675,7 @@ func SetSecureLocation(orgID *C.char, cc *C.char) *C.char { // `c` is the Cookie that needs to be passed. Create a new Cookie using `CookieNew` // `search` is the search string for filtering the list. // If any of the words in the search query is not contained in any of the display names or keywords, the candidate is filtered. -// Otherwise they are ranked based on the levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance +// Otherwise they are ranked based on the levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance // // If it was unsuccessful, it returns an error. Note that when the lib was built in release mode the data is almost always non-nil, even when an error has occurred // This means it has just returned the cached list @@ -684,18 +684,18 @@ func SetSecureLocation(orgID *C.char, cc *C.char) *C.char { // // Example Output: // -// { -// "server_list": [ -// { -// "base_url": "https://eduvpn.rash.al/", -// "country_code": "AL", -// "server_type": "secure_internet", -// }, -// { -// "base_url": "https://eduvpn.deic.dk/", -// "country_code": "DK", -// "server_type": "secure_internet", -// } , null +// { +// "server_list": [ +// { +// "base_url": "https://eduvpn.rash.al/", +// "country_code": "AL", +// "server_type": "secure_internet", +// }, +// { +// "base_url": "https://eduvpn.deic.dk/", +// "country_code": "DK", +// "server_type": "secure_internet", +// } , null // // Example Input: ```DiscoServers(myCookie, "heanet")``` // @@ -739,7 +739,7 @@ func DiscoServers(c C.uintptr_t, search *C.char) (*C.char, *C.char) { // `c` is the Cookie that needs to be passed. Create a new Cookie using `CookieNew` // `search` is the search string for filtering the list. // If any of the words in the search query is not contained in any of the display names or keywords, the candidate is filtered. -// Otherwise they are ranked based on the levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance +// Otherwise they are ranked based on the levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance // If search is empty it returns ALL organizations currently known in common // // If it was unsuccessful, it returns an error. Note that when the lib was built in release mode the data is almost always non-nil, even when an error has occurred diff --git a/internal/api/api_test.go b/internal/api/api_test.go index c126af4..5de1d7b 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -200,10 +200,9 @@ func createTestAPI(t *testing.T, tok *eduoauth.Token, gt []string, hps []test.Ha return in }, DisableAuthorize: false, - Transport: servc.Client.Transport, + Transport: servc.Client.Transport, } - tc := &TestCallback{t: t} a, err := NewAPI(context.Background(), "testclient", sd, tc, tok) |
