(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestInterpolateVariables(t *testing.T) { |
| 15 | got := InterpolateVariables( |
| 16 | "${baseURL}/users/${id}?missing=${missing}", |
| 17 | map[string]string{"baseURL": "http://localhost:8080", "id": "42"}, |
| 18 | ) |
| 19 | want := "http://localhost:8080/users/42?missing=${missing}" |
| 20 | if got != want { |
| 21 | t.Fatalf("InterpolateVariables() = %q, want %q", got, want) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestInterpolationNames(t *testing.T) { |
| 26 | got := InterpolationNames("${baseURL}/users/${id}/${id}") |
nothing calls this directly
no test coverage detected