MCPcopy Create free account
hub / github.com/zalando/skipper / testDoc

Function testDoc

eskip/string_test.go:29–44  ·  view source on GitHub ↗
(t *testing.T, doc string)

Source from the content-addressed store, hash-verified

27}
28
29func testDoc(t *testing.T, doc string) string {
30 routes, err := Parse(doc)
31 if err != nil {
32 t.Error(err)
33 }
34
35 docBack := String(routes...)
36 if docBack != doc {
37 pos, _, _ := findDiffPos(docBack, doc)
38 t.Error("failed to serialize doc", pos)
39 t.Log(docBack)
40 t.Log(doc)
41 }
42
43 return docBack
44}
45
46func TestRouteString(t *testing.T) {
47 for i, item := range []struct {

Callers 2

TestDocStringFunction · 0.85

Calls 5

StringFunction · 0.85
findDiffPosFunction · 0.85
LogMethod · 0.80
ParseFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…