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

Function TestIsNothingNew

cli/memory_worker_test.go:81–95  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestIsNothingNew(t *testing.T) {
82 positives := []string{"NOTHING_NEW", "nothing_new", "Nothing New", "NOTHING-NEW", "N/A", "None", "NA", "NOTHING_NEW.", " none "}
83 for _, s := range positives {
84 if !isNothingNew(s) {
85 t.Errorf("isNothingNew(%q) should be true", s)
86 }
87 }
88
89 negatives := []string{"- Read main.go", "Some actual content", "NOTHING_NEW\n- but also this", ""}
90 for _, s := range negatives {
91 if isNothingNew(s) {
92 t.Errorf("isNothingNew(%q) should be false", s)
93 }
94 }
95}
96
97func TestParseMemoryResponse_LongtermNothingNew(t *testing.T) {
98 response := `## DAILY

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
isNothingNewFunction · 0.70

Tested by

no test coverage detected