Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

preflight

Go Reference Conventional Commits License: BSD-3

Readable assertions for tests in Go

Installation

go get vincent.click/pkg/preflight

Getting Started

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)
}

Development

Please read the Contribution Guide before you proceed.

Copyright

Copyright 2021 Vincent Fiestada. This project is released under an MIT License.

Icon made by Freepik.

About

Readable assertions for testing in Go

Topics

Resources

License

Packages

No packages published

Languages