Categorygithub.com/tisonkun/assert
repositorypackage
1.2.1
Repository: https://github.com/tisonkun/assert.git
Documentation: pkg.go.dev

# README

Assert

Description

This package is heavily inspired from stretchr/testify, and you can regard it as a fork of the upstream repository.

This package extracts all assertions and republish them with new ones including:

  • (*Assertion).ErrorRegexp

The Assert package servers as a supplement of Golang's testing for convenient assertions. And thus I don't want to implement anything like suite or mock.

  • suite can be simply implemented leveraging Golang's Subtests.
  • mock is not a good practice as it's hard to sync logics between the mock and the real object.

Usage

go get github.com/tisonkun/assert

Copyright & License

The bundle itself is licensed under the Apache License.

Copyright 2022 tison [email protected].

You can see all transitive licenses and notices under the LICENSES folder.