(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func 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 | |
| 142 | func TestModifyMessageLabels_WrongAgent(t *testing.T) { |
| 143 | pool := testutil.TestDB(t) |
nothing calls this directly
no test coverage detected