Socket
Book a DemoInstallSign in
Socket

vincent.click/pkg/preflight

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vincent.click/pkg/preflight

Go Modules
Version
v0.0.4
Version published
Created
Source

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 2021 Vincent Fiestada. This project is released under an MIT License.

Icon made by Freepik.

FAQs

Package last updated on 13 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts