aboutsummaryrefslogtreecommitdiff
path: root/instance_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-12-01 19:45:55 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-12-01 19:45:55 +0100
commit12af3f2e8fad65534b83260967ea7463df6ca652 (patch)
tree97aab78be87e0c62bf6498011f8b041d859566c9 /instance_test.go
parent6cd12911f4d3aa4c6a75c922f9de231e2cf309dd (diff)
renamed and documented function
Diffstat (limited to 'instance_test.go')
-rw-r--r--instance_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/instance_test.go b/instance_test.go
index 6fe0e5b..b4b13c8 100644
--- a/instance_test.go
+++ b/instance_test.go
@@ -39,7 +39,7 @@ func makeTestLogParameters(t *testing.T, signer crypto.Signer) *LogParameters {
}
}
-func TestEndpointUrl(t *testing.T) {
+func TestEndpointPath(t *testing.T) {
base, prefix := "http://example.com", "test"
for _, table := range []struct {
endpoint Endpoint
@@ -70,10 +70,10 @@ func TestEndpointUrl(t *testing.T) {
want: "http://example.com/test/get-anchors",
},
} {
- if got, want := table.endpoint.Url(base, prefix), table.want; got != want {
+ if got, want := table.endpoint.Path(base, prefix), table.want; got != want {
t.Errorf("got %s but wanted %s with multiple components", got, want)
}
- if got, want := table.endpoint.Url(base+"/"+prefix), table.want; got != want {
+ if got, want := table.endpoint.Path(base+"/"+prefix), table.want; got != want {
t.Errorf("got %s but wanted %s with one component", got, want)
}
}