diff --git a/client_test.go b/client_test.go index e99443b..e3fce2c 100644 --- a/client_test.go +++ b/client_test.go @@ -4,7 +4,7 @@ import ( "fmt" ) -func ExampleClientBuildURLWithQuery() { +func ExampleClient_BuildURLWithQuery() { cli, _ := NewClient("https://matrix.org", "@example:matrix.org", "abcdef123456") out := cli.BuildURLWithQuery([]string{"sync"}, map[string]string{ "filter_id": "5", @@ -13,7 +13,7 @@ func ExampleClientBuildURLWithQuery() { // Output: https://matrix.org/_matrix/client/r0/sync?access_token=abcdef123456&filter_id=5 } -func ExampleClientBuildURL() { +func ExampleClient_BuildURL() { userID := "@example:matrix.org" cli, _ := NewClient("https://matrix.org", userID, "abcdef123456") out := cli.BuildURL("user", userID, "filter") @@ -21,7 +21,7 @@ func ExampleClientBuildURL() { // Output: https://matrix.org/_matrix/client/r0/user/@example:matrix.org/filter?access_token=abcdef123456 } -func ExampleClientBuildBaseURL() { +func ExampleClient_BuildBaseURL() { userID := "@example:matrix.org" cli, _ := NewClient("https://matrix.org", userID, "abcdef123456") out := cli.BuildBaseURL("_matrix", "client", "r0", "directory", "room", "#matrix:matrix.org")