Debian Codegraph @

/

debian golang-github-ysmood-got 0.40.0-2debian golang-github-ysmood-got-dev gomod github.com/ysmood/got debiangogoinijsonmakefilemarkdownshelltypescriptyaml 85 files · 627 symbols
View dependency graph

Depends on

README (full)

Overview

An enjoyable golang test framework.

Features

  • Pretty output using gop and diff
  • Fluent API design that takes the full advantage of IDE
  • Handy assertion helpers
  • Handy utils for testing
  • Value snapshot assertion
  • Customizable assertion error output

Guides

Read the example project to get started.

Got uses itself as the test framework, so the source code itself is the best doc.

Install the vscode extension for snippets like: gp, gt, and gsetup.

To ensure test coverage of your project, you can run the command below:

go test -race -coverprofile=coverage.out ./...
go run github.com/ysmood/got/cmd/check-cov@latest

By default the check-cov requires 100% coverage, run it with the -h flag to see the help doc.

API reference

Link

dir .github/
dir cmd/
dir debian/
dir fixtures/
dir lib/
file .gitignore
file .golangci.yml
file LICENSE
file README.md
file assertions.go
file assertions_error.go
file assertions_test.go
file cli_utils.go
file cli_utils_test.go
file each.go
file each_test.go
file go.mod
file go.sum
file go.work
file go.work.sum
file got.go
file got_test.go
file setup_test.go
file snapshots.go
file snapshots_test.go
file utils.go
file utils_private_test.go
file utils_req.go
file utils_serve.go
file utils_test.go