Skip to content

thediveo/testily

Repository files navigation

testily

PkgGoDev License build and test goroutines Go Report Card Coverage

A small collection of weird test convenience helpers with odd names, to aid in DRY. Preferably dot-imported as a simple DSL to make your unit tests more concise. A nice companion to Ginkgo.

  • package tuples: type-safe tuples packing and unpacking: Pair, Triple. Use PackPair(...), Unpack(), et cetera.
  • package concur: calling functions on new goroutines and signalling when they've finished, optionally channeling their results back: CloseWhenDone, PassWhenDone.
  • package zero: Zero[T]() when you want to be curt without explicit zero vars.
  • package nothing: interface{} has any, we have Nothing for struct{}.

DevContainer

Caution

Do not use VSCode's "Dev Containers: Clone Repository in Container Volume" command, as it is utterly broken by design, ignoring .devcontainer/devcontainer.json.

  1. git clone https://github.com/thediveo/testily
  2. in VSCode: Ctrl+Shift+P, "Dev Containers: Open Workspace in Container..."
  3. select testily.code-workspace and off you go...

Supported Go Versions

lxkns supports versions of Go that are noted by the Go release policy, that is, major versions N and N-1 (where N is the current major version).

Contributing

Please see CONTRIBUTING.md.

Copyright and License

testily is Copyright 2026 Harald Albrecht, and licensed under the Apache License, Version 2.0.

About

Weird test convenience helpers with odd names, to aid in DRY.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages