...

Source file src/github.com/jarcoal/httpmock/internal/error_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 TestErrorNoResponderFoundMistake(t *testing.T) {
    12  	e := &internal.ErrorNoResponderFoundMistake{
    13  		Kind:      "method",
    14  		Orig:      "pipo",
    15  		Suggested: "BINGO",
    16  	}
    17  
    18  	td.Cmp(t, e.Error(), `no responder found for method "pipo", but one matches method "BINGO"`)
    19  
    20  	td.Cmp(t, e.Unwrap(), internal.NoResponderFound)
    21  }
    22  

View as plain text