MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / createTestPattern

Function createTestPattern

internal/plugins/db/fsdb/patterns_test.go:34–41  ·  view source on GitHub ↗
(t *testing.T, entity *PatternsEntity, name, content string)

Source from the content-addressed store, hash-verified

32}
33
34func createTestPattern(t *testing.T, entity *PatternsEntity, name, content string) {
35 patternDir := filepath.Join(entity.Dir, name)
36 err := os.MkdirAll(patternDir, 0755)
37 require.NoError(t, err)
38
39 err = os.WriteFile(filepath.Join(patternDir, entity.SystemPatternFile), []byte(content), 0644)
40 require.NoError(t, err)
41}
42
43func TestApplyVariables(t *testing.T) {
44 entity := &PatternsEntity{}

Calls

no outgoing calls

Tested by

no test coverage detected