Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 935 Bytes

File metadata and controls

28 lines (16 loc) · 935 Bytes

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 wander4096@gmail.com.

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