MCPcopy Create free account
hub / github.com/flant/shell-operator / mustReadFile

Function mustReadFile

pkg/kube/object_patch/patch_test.go:21–26  ·  view source on GitHub ↗
(t *testing.T, filePath string)

Source from the content-addressed store, hash-verified

19)
20
21func mustReadFile(t *testing.T, filePath string) []byte {
22 t.Helper()
23 content, err := os.ReadFile(filePath)
24 require.NoError(t, err)
25 return content
26}
27
28func Test_ParseOperations(t *testing.T) {
29 const (

Callers 1

Test_ParseOperationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected