MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestModifyMessageLabels_NotFound

Function TestModifyMessageLabels_NotFound

internal/identity/labels_test.go:129–140  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func TestModifyMessageLabels_NotFound(t *testing.T) {
130 pool := testutil.TestDB(t)
131 store := identity.NewStore(pool)
132 ctx := context.Background()
133
134 _, agentID := labelsTestSetup(t, store, "labels-notfound")
135
136 _, err := store.ModifyMessageLabels(ctx, "msg_nonexistent", agentID, []string{"x"}, nil)
137 if !errors.Is(err, identity.ErrMessageNotFound) {
138 t.Errorf("err = %v, want ErrMessageNotFound", err)
139 }
140}
141
142func TestModifyMessageLabels_WrongAgent(t *testing.T) {
143 pool := testutil.TestDB(t)

Callers

nothing calls this directly

Calls 4

ModifyMessageLabelsMethod · 0.95
TestDBFunction · 0.92
NewStoreFunction · 0.92
labelsTestSetupFunction · 0.85

Tested by

no test coverage detected