Skip to content

A toolkit with common assertions that plays nicely with the standard library.

License

Notifications You must be signed in to change notification settings

tisonkun/assert

Repository files navigation

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.

About

A toolkit with common assertions that plays nicely with the standard library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages