(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestInterpolationNames(t *testing.T) { |
| 26 | got := InterpolationNames("${baseURL}/users/${id}/${id}") |
| 27 | want := []string{"baseURL", "id", "id"} |
| 28 | if len(got) != len(want) { |
| 29 | t.Fatalf("InterpolationNames() = %#v, want %#v", got, want) |
| 30 | } |
| 31 | for i := range want { |
| 32 | if got[i] != want[i] { |
| 33 | t.Fatalf("InterpolationNames() = %#v, want %#v", got, want) |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func TestRunHTTPRequestInterpolatesRequestAndCapturesResponseVariables(t *testing.T) { |
| 39 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected