func Test_String(t *testing.T) { expectedString := "URI:/test, Method:GET, Contenttype:contentType, Status:418\n" m := model.MockConf{URI: "/test", Method: "GET", ContentType: "contentType", StatusCode: 418} got := m.String() if got != expectedString { t.Errorf("Expected: %v but got: %v", expectedString, got) } }
func (DummyFileSystem) WriteMock(c model.MockConf, content []byte, dirpath string) error { log.Printf("Writing mock %v to dummy fs.", c.String()) return nil }