admincontract

package
v0.139.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL