Readable assertions for tests in Go
go get vincent.click/pkg/preflight
To write unit tests, use the preflight package to extend the standard testing package.
An Expectation provides a common interface for making assertions about values and behaviors.
Learn more in the docs.
func TestMethod(test *testing.T) {
t := preflight.Unit(test)
t.Expect(2 + 5).Equals(7)
}
Please read the Contribution Guide before you proceed.
Copyright 2021 Vincent Fiestada. This project is released under an MIT License.
Icon made by Freepik.