Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Godeps
.idea
*.out
.mcp.json
go.work.sum
61 changes: 61 additions & 0 deletions assert/assert_assertions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions assert/assert_assertions_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions assert/assert_examples_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions assert/assert_format.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions assert/assert_format_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions assert/assert_forward.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions assert/assert_forward_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/doc-site/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Each domain contains assertions regrouped by their use case (e.g. http, json, er
- [File](./file.md) - Asserting OS Files (6)
- [Http](./http.md) - Asserting HTTP Response And Body (7)
- [Json](./json.md) - Asserting JSON Documents (5)
- [Number](./number.md) - Asserting Numbers (7)
- [Number](./number.md) - Asserting Numbers (9)
- [Ordering](./ordering.md) - Asserting How Collections Are Ordered (10)
- [Panic](./panic.md) - Asserting A Panic Behavior (4)
- [Safety](./safety.md) - Checks Against Leaked Resources (Goroutines, File Descriptors) (2)
Expand Down
14 changes: 8 additions & 6 deletions docs/doc-site/api/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Counts for core functionality, and generated variants (formatted, forward, forwa

| Kind | Count | Note |
| ------------------------- | ----------------- | ---- |
| All core functions | 135 | Maintained core |
| All core assertions | 131 | Usage with `*testing.T` |
| Generic assertions | 50 | Type-safe assertions ("T" suffix) |
| All core functions | 137 | Maintained core |
| All core assertions | 133 | Usage with `*testing.T` |
| Generic assertions | 51 | Type-safe assertions ("T" suffix) |
| Helpers (not assertions) | 4 | General-purpose utilities, not assertions |
| Others | 0 | |
| assert/require variants | 424 | Generated variants |
| Total assertions variants | 848 | Available assertions API |
| Total API surface | 858 | |
| assert/require variants | 430 | Generated variants |
| Total assertions variants | 860 | Available assertions API |
| Total API surface | 870 | |

## Quick index

Expand Down Expand Up @@ -71,6 +71,8 @@ Table of core assertions, excluding variants. Each function is side by side with
| [InDeltaT[Number Measurable]](number/#indeltatnumber-measurable) {{% icon icon="star" color=orange %}} | | number | |
| [InEpsilon](number/#inepsilon) | | number | |
| [InEpsilonSlice](number/#inepsilonslice) | | number | |
| [InEpsilonSymmetric](number/#inepsilonsymmetric) | | number | |
| [InEpsilonSymmetricT[Number Measurable]](number/#inepsilonsymmetrictnumber-measurable) {{% icon icon="star" color=orange %}} | | number | |
| [InEpsilonT[Number Measurable]](number/#inepsilontnumber-measurable) {{% icon icon="star" color=orange %}} | | number | |
| [IsDecreasing](ordering/#isdecreasing) | [IsNonDecreasing](ordering/#isnondecreasing) | ordering | |
| [IsDecreasingT[OrderedSlice ~[]E, E Ordered]](ordering/#isdecreasingtorderedslice-e-e-ordered) {{% icon icon="star" color=orange %}} | [IsNonDecreasingT](ordering/#isnondecreasingtorderedslice-e-e-ordered) | ordering | |
Expand Down
Loading
Loading