MCPcopy
hub / github.com/gofiber/fiber / Test_ConfigOverrideCursorKey

Function Test_ConfigOverrideCursorKey

middleware/paginate/paginate_test.go:68–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func Test_ConfigOverrideCursorKey(t *testing.T) {
69 t.Parallel()
70
71 cfg := configDefault(Config{
72 CursorKey: "after",
73 CursorParam: "starting_after",
74 })
75 require.Equal(t, "after", cfg.CursorKey)
76 require.Equal(t, "starting_after", cfg.CursorParam)
77}
78
79func Test_ConfigNegativeDefaults(t *testing.T) {
80 t.Parallel()

Callers

nothing calls this directly

Calls 1

configDefaultFunction · 0.70

Tested by

no test coverage detected