Enter the query into the form above. You can look for specific version of a package by using @ symbol like this: gcc@10.
API method:
GET /api/packages?search=hello&page=1&limit=20
where search is your query, page is a page number and limit is a number of items on a single page. Pagination information (such as a number of pages and etc) is returned
in response headers.
If you'd like to join our channel search send a patch to ~whereiseveryone/toys@lists.sr.ht adding your channel as an entry in channels.scm.
Package quartz is a library for testing time related code. It exports an interface Clock that mimics the standard library time package functions. In production, an implementation that calls thru to the standard library is used. In testing, a Mock clock is used to precisely control and intercept time functions.
This is a linter for Go source code. Unlike gofmt, it doesn't reformat the source code, it only prints out style mistakes.
Versatile HTTP mocking made easy in Go that works with any net/http based stdlib implementation. Inspired by the Node nock library, it has features like:
Simple and expressive API
Semantic API DSL for declarative HTTP mock declarations
Built-in helpers for easy JSON/XML mocking
Supports persistent and volatile TTL-limited mocks
Full regular expressions capable HTTP request mock matching
Designed for both testing and runtime scenarios
Match request by method, URL params, headers and bodies
Extensible and pluggable HTTP matching rules
Ability to switch between mock and real networking modes
Ability to filter/map HTTP requests for accurate mock matching
Supports map and filters to handle mocks easily
Wide compatible HTTP interceptor using
http.RoundTripperinterfaceWorks with any
net/httpcompatible client, such asgentlemanNetwork timeout/cancelation delay simulation
Extensible and hackable API
This package provides a simple little tool that produces readable diff of 2 JSON-able and convertible to map[string]interface objects. Useful for diagnostics or debugging
This package provide many tools for testifying that your code will behave as you intend.
Features include:
Easy assertions
Mocking
HTTP response trapping
Testing suite interfaces and functions.
This package provides a contract to share variables between test helpers in Golang.
Package gotesttools is a collection of packages to augment testing and support common patterns.
Packages:
assert- compare values and fail the test when a comparison failsenv- test code which uses environment variablesfs- create temporary files and compare a filesystem tree to an expected valuegolden- compare large multi-line strings against values frozen in golden filesicmd- execute binaries and test the outputpoll- test asynchronous code by polling until a desired state is reachedskip- skip a test and print the source code of the condition used to skip the test
Ginkgo is a Behaviour-Driven Development testing framework for Go. It builds on top of Go's builtin testing library and is complemented by the Gomega matcher library.
This package implements a functionality to converts Go values at runtime into their @codego/ast equivalent,which may be used in debugging and testing, as a more comprehensive and configurable version of the fmt package's %+v and %#v formatting directives. It is similar to e.g. repr in Python.
In Norse mythology, Hel cares for the souls of people who didn't die in battle. This little tool cares for mock implementations of interface types.
Ginkgo is a Behaviour-Driven Development testing framework for Go. It builds on top of Go's builtin testing library and is complemented by the Gomega matcher library.
Package st, pronounced ghost, is a tiny test framework for making short, useful assertions in your Go tests. Assert(t, have, want) and Refute(t, have, want) abort a test immediately with t.Fatal. Expect(t, have, want) and Reject(t, have, want) allow a test to continue, reporting failure at the end with t.Error. They print nice error messages, preserving the order of have (actual result) before want (expected result) to minimize confusion.
This package implements UDP test helpers. It lets assert that certain strings must or must not be sent to a given local UDP listener.
Package ogletest provides a framework for writing expressive unit tests. It integrates with the builtin testing package, so it works with the gotest command. Unlike the testing package which offers only basic capabilities for signalling failures, it offers ways to express expectations and get nice failure messages automatically.
Package is provides a lightweight extension to the standard library's testing capabilities.
The gls package provides a way to store a retrieve values per-goroutine.
This package provides additions to Go's stdlib testing.
pprof is a tool for visualization and analysis of profiling data.
It reads a collection of profiling samples in profile.proto format and generates reports to visualize and help analyze the data. It can generate both text and graphical reports (through the use of the dot visualization package).
@codego-vcr simplifies testing by recording your HTTP interactions and replaying them in future runs in order to provide fast, deterministic and accurate testing of your code.
This package provides an implementation of failpoints for Golang.
gomock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too.
pgmockproxy is a PostgreSQL proxy that logs the messages back and forth between the PostgreSQL client and server. This can aid in building a mocking script by running commands against a real server to observe the results. It can also be used to debug applications that speak the PostgreSQL wire protocol without needing to use a tool like Wireshark.
Package tbltest implements helper functions to help write table driven tests.
Package quicktest provides a collection of Go helpers for writing tests.