MCPcopy Create free account
hub / github.com/diillson/chatcli / TestRulesLoader_EmptyDir

Function TestRulesLoader_EmptyDir

cli/workspace/rules_test.go:87–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestRulesLoader_EmptyDir(t *testing.T) {
88 rl := NewRulesLoader(t.TempDir(), t.TempDir(), testLogger())
89 result := rl.LoadMatchingRules(nil)
90 if result != "" {
91 t.Errorf("expected empty result for no rules, got %q", result)
92 }
93}
94
95func TestMatchesAnyPath(t *testing.T) {
96 tests := []struct {

Callers

nothing calls this directly

Calls 4

LoadMatchingRulesMethod · 0.95
NewRulesLoaderFunction · 0.85
ErrorfMethod · 0.80
testLoggerFunction · 0.70

Tested by

no test coverage detected