...

Source file src/github.com/jarcoal/httpmock/internal/route_key_test.go

Documentation: github.com/jarcoal/httpmock/internal

     1  package internal_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/maxatome/go-testdeep/td"
     7  
     8  	"github.com/jarcoal/httpmock/internal"
     9  )
    10  
    11  func TestRouteKey(t *testing.T) {
    12  	td.Cmp(t, internal.NoResponder.String(), "NO_RESPONDER")
    13  
    14  	td.Cmp(t, internal.RouteKey{Method: "GET", URL: "/foo"}.String(), "GET /foo")
    15  }
    16  

View as plain text