Documentation
¶
Overview ¶
Package admincontract provides reusable repository contract assertions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPaginationContract ¶
func AssertPaginationContract(t *testing.T, list ListFunc, cfg PaginationContractConfig)
AssertPaginationContract verifies that total is stable across pages and page slicing honors total/per-page semantics.
Types ¶
type ListFunc ¶
type ListFunc = rootcontract.ListFunc
ListFunc describes the contract target list function.
type ListOptions ¶
type ListOptions = rootcontract.ListOptions
ListOptions is a transport-agnostic list query shape for list contracts.
type ListPredicate ¶
type ListPredicate = rootcontract.ListPredicate
ListPredicate is a transport-agnostic predicate shape for list contracts.
type PaginationContractConfig ¶
type PaginationContractConfig = rootcontract.PaginationContractConfig
PaginationContractConfig configures assertions for a list total/pagination contract.
Click to show internal directories.
Click to hide internal directories.