MCPcopy Create free account
hub / github.com/riverqueue/river / TestReindexerIndexNamesDefault

Function TestReindexerIndexNamesDefault

client_test.go:8671–8689  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8669}
8670
8671func TestReindexerIndexNamesDefault(t *testing.T) {
8672 t.Parallel()
8673
8674 indexNames := ReindexerIndexNamesDefault()
8675
8676 // Assert the exact list so index list changes require explicit test updates.
8677 require.Equal(t, []string{
8678 "river_job_args_index",
8679 "river_job_kind",
8680 "river_job_metadata_index",
8681 "river_job_pkey",
8682 "river_job_prioritized_fetching_index",
8683 "river_job_state_and_finalized_at_index",
8684 "river_job_unique_idx",
8685 }, indexNames)
8686
8687 indexNames[0] = "mutated"
8688 require.Equal(t, "river_job_args_index", ReindexerIndexNamesDefault()[0])
8689}
8690
8691type timeoutTestArgs struct {
8692 TimeoutValue time.Duration `json:"timeout_value"`

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…