Your message dated Thu, 12 Dec 2024 08:22:28 +0100
with message-id <87a5d19xhn....@kaka.sjd.se>
and subject line closing duplicate ITP for golang-github-go-quicktest-qt
has caused the Debian Bug report #1063929,
regarding ITP: golang-github-go-quicktest-qt -- Quick helpers for testing Go
applications using generics.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1063929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063929
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: wnpp
Severity: wishlist
Owner: Loren M. Lang <lor...@north-winds.org>
* Package name : golang-github-go-quicktest-qt
Version : 1.101.0-1
Upstream Author :
* URL : https://github.com/go-quicktest/qt
* License : Expat
Programming Lang: Go
Description : Quick helpers for testing Go applications using generics.
qt: quicker Go tests
.
go get github.com/go-quicktest/qt
.
Package qt provides a collection of Go helpers for writing tests. It
uses generics, so requires Go 1.18 at least.
.
For a complete API reference, see the package documentation
(https://pkg.go.dev/github.com/go-quicktest/qt).
.
Quicktest helpers can be easily integrated inside regular Go tests, for
instance:
.
import "github.com/go-quicktest/qt"
.
func TestFoo(t *testing.T) {
t.Run("numbers", func(t *testing.T) {
numbers, err := somepackage.Numbers()
qt.Assert(t, qt.DeepEquals(numbers, []int{42, 47})
qt.Assert(t, qt.ErrorMatches(err, "bad wolf"))
})
t.Run("nil", func(t *testing.T) {
got := somepackage.MaybeNil()
qt.Assert(t, qt.IsNil(got), qt.Commentf("value: %v",
somepackage.Value))
})
}
.
Assertions
.
An assertion looks like this, where qt.Equals could be replaced by any
available checker. If the assertion fails, the underlying t.Fatal method
is called to describe the error and abort the test.
.
qt.Assert(t, qt.Equals(someValue, wantValue))
.
If you don’t want to abort on failure, use Check instead, which calls
Error instead of Fatal:
.
qt.Check(t, qt.Equals(someValue, wantValue))
.
The library provides some base checkers like Equals, DeepEquals,
Matches, ErrorMatches, IsNil and others. More can be added by
implementing the Checker interface.
.
Other helpers
.
The Patch helper makes it a little more convenient to change a global or
other variable for the duration of a test.
This package is being added to support cilium/pwru which is RFP in BTS
#1063031.
--- End Message ---
--- Begin Message ---
Hi. The package has now been uploaded:
https://tracker.debian.org/pkg/golang-github-go-quicktest-qt
I didn't notice this ITP until now, my ITP was here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088197
Packaging is here, feel free to join and help work on it:
https://salsa.debian.org/go-team/packages/golang-github-go-quicktest-qt
/Simon
signature.asc
Description: PGP signature
--- End Message ---