MCPcopy Create free account
hub / github.com/goadesign/goa / StringContent

Method StringContent

codegen/testutil/golden.go:79–81  ·  view source on GitHub ↗

StringContent sets string content to compare (fluent API)

(content string)

Source from the content-addressed store, hash-verified

77
78// StringContent sets string content to compare (fluent API)
79func (g *GoldenFile) StringContent(content string) *GoldenFile {
80 return g.Content([]byte(content))
81}
82
83// Path sets the golden file path (fluent API)
84func (g *GoldenFile) Path(path string) *GoldenFile {

Callers 5

TestWithSubtestsFunction · 0.95
TestParallelUpdatesFunction · 0.95
CompareMethod · 0.95
CompareOrUpdateGoldenFunction · 0.95
AssertStringFunction · 0.95

Calls 1

ContentMethod · 0.95

Tested by 2

TestWithSubtestsFunction · 0.76
TestParallelUpdatesFunction · 0.76