[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#985272: marked as done (ITP: golang-github-huandu-go-assert -- Magic assert macros for Go.)



Your message dated Thu, 08 Apr 2021 13:00:09 +0000
with message-id <E1lUUGX-0001LT-QC@fasolo.debian.org>
and subject line Bug#985272: fixed in golang-github-huandu-go-assert 1.1.5-1
has caused the Debian Bug report #985272,
regarding ITP: golang-github-huandu-go-assert -- Magic assert macros for Go.
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 owner@bugs.debian.org
immediately.)


-- 
985272: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985272
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: wnpp
Severity: wishlist
Owner: debian@thola.io

* Package name    : golang-github-huandu-go-assert
  Version         : 1.1.5-1
  Upstream Author : Huan Du
* URL             : https://github.com/huandu/go-assert
* License         : Expat
  Programming Lang: Go
  Description     : Magic assert macros for Go.

 Package assert - Magic assert macros for Go Go Go Doc
 (https://pkg.go.dev/github.com/huandu/go-assert)
 .
 Package assert provides developer a way to assert expression and output
 useful contextual information automatically when a case fails.  With this
 package, we can focus on writing test code without worrying about how
 to print lots of verbose debug information for debug.
 .
 Here is a quick sample.
 .
 ```go import "github.com/huandu/go-assert"
 .
 func TestSomething(t *testing.T) {
     str := Foo(42) assert.Assert(t, str == "expected")
 // This case fails with following message.  // //     Assertion failed:
 //         str == "expected" //     Referenced variables are assigned
 in following statements: //         str := Foo(42)
 .
 } ``` Import Use go get to install this package.
 .
 shell go get github.com/huandu/go-assert
 .
 .
 Current stable version is v1.*. Old versions tagged by v0.* are obsoleted.
 UsageAssertion methods If we just want to use functions like Assert,
 Equal or NotEqual, it's recommended to import this package as ..
 .
 ```go import "github.com/huandu/go-assert"
 .
 func TestSomething(t *testing.T) {
     a, b := 1, 2 assert.Assert(t, a > b)
 // This case fails with message: //     Assertion failed: //         a > b
 .
 }
 .
 func TestAssertEquality(t *testing.T) {
     assert.Equal(t, map[string]int{
         "foo": 1, "bar": -2,
     }, map[string]int{
         "bar": -2, "foo": 10000,
     })
 // This case fails with message: //     Assertion failed: //     The
 value of following expression should equal.  //     [1] map[string]int{
 //             "foo": 1, //             "bar": -2, //         } //     [2]
 map[string]int{ //             "bar": -2, //             "foo": 10000, //
 } //     Values: //     [1] -> (map[string]int)map[bar:-2 foo:1] //
 [2] -> (map[string]int)map[bar:-2 foo:10000]
 .
 } ``` Advanced assertion wrapper: type A If we want more controls on
 assertion, it's recommended to wrap t in an A.
 .
 There are lots of useful assert methods implemented in A.  • Assert
 (https://godoc.org/github.com/huandu/go-assert#A.Assert)/Eqaul
 (https://godoc.org/github.com/huandu/go-assert#A.Equal)/NotEqual
 (https://godoc.org/github.com/huandu/go-assert#A.NotEqual):
 Basic assertion methods.• NilError
 (https://godoc.org/github.com/huandu/go-assert#A.NilError)/NonNilError
 (https://godoc.org/github.com/huandu/go-assert#A.NonNilError):
 Test if a func/method returns expected error.• Use
 (https://godoc.org/github.com/huandu/go-assert#A.Use): Track variables. If
 any assert method fails, all variables tracked by A and related in assert
 method will be printed out automatically in assertion message.  Here is
 a sample to demonstrate how to use A#Use to print related variables in
 assertion message.
 .
 ```go import "github.com/huandu/go-assert"
 .
 func TestSomething(t *testing.T) {
     a := assert.New(t) v1 := 123 v2 := []string{"wrong", "right"} v3 :=
     v2[0] v4 := "not related" a.Use(&v1, &v2, &v3, &v4)
 a.Assert(v1 == 123 && v3 == "right")
 .
 // This case fails with following message.  // //     Assertion failed:
 //         v1 == 123 && v3 == "right" //     Referenced variables are
 assigned in following statements: //         v1 := 123 //         v3 :=
 v2[0] //     Related variables: //         v1 -> (int)123 //         v2 ->
 ([]string)[wrong right] //         v3 -> (string)wrong
 .
 }

--- End Message ---
--- Begin Message ---
Source: golang-github-huandu-go-assert
Source-Version: 1.1.5-1
Done: Thola Team <debian@thola.io>

We believe that the bug you reported is fixed in the latest version of
golang-github-huandu-go-assert, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 985272@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thola Team <debian@thola.io> (supplier of updated golang-github-huandu-go-assert package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 15 Mar 2021 09:48:43 +0000
Source: golang-github-huandu-go-assert
Binary: golang-github-huandu-go-assert-dev
Architecture: source all
Version: 1.1.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Thola Team <debian@thola.io>
Description:
 golang-github-huandu-go-assert-dev - Magic assert macros for Go
Closes: 985272
Changes:
 golang-github-huandu-go-assert (1.1.5-1) unstable; urgency=medium
 .
   * Initial release (Closes: #985272)
Checksums-Sha1:
 4ebdc7383a062a0a910e30a401530a9ade77e31a 2417 golang-github-huandu-go-assert_1.1.5-1.dsc
 2a529f0ed33af9e869d15ef33d2a7215ff7a6c19 12975 golang-github-huandu-go-assert_1.1.5.orig.tar.gz
 7e3a236f7250361ea9971a9249a9bb6074eb117f 2592 golang-github-huandu-go-assert_1.1.5-1.debian.tar.xz
 29ee7011d71e63330c574eec5a61b315e6cef094 12524 golang-github-huandu-go-assert-dev_1.1.5-1_all.deb
 1c3cbfcf2bd22c6da48843a6239060a43fb39cc9 6101 golang-github-huandu-go-assert_1.1.5-1_amd64.buildinfo
Checksums-Sha256:
 4032fc0624bfbba4bb1aefd2b99355fa018f6ae32d4ae4c634b5350e91c36e61 2417 golang-github-huandu-go-assert_1.1.5-1.dsc
 2094ba6f89f2943917a1e753e22748f77be5cef11d0290cb2d288b66964b01b8 12975 golang-github-huandu-go-assert_1.1.5.orig.tar.gz
 84386feb2b6baffa852115bfd828ce2c94ffa95f18549ab8a18cc6343c5821d0 2592 golang-github-huandu-go-assert_1.1.5-1.debian.tar.xz
 aa912e259924ade3a93821011b4ca2bd581f39ae75f6320449c041998abc6551 12524 golang-github-huandu-go-assert-dev_1.1.5-1_all.deb
 5f8379210669fafa3f705e95832fcc57d45dd568e0947e9466943a6bb02f6256 6101 golang-github-huandu-go-assert_1.1.5-1_amd64.buildinfo
Files:
 bcc5040f104cee2d1d425ef787b56e8f 2417 golang optional golang-github-huandu-go-assert_1.1.5-1.dsc
 21e0e9bbb2f1db076e0ef50de7824215 12975 golang optional golang-github-huandu-go-assert_1.1.5.orig.tar.gz
 c2860113bd973c971897541b82edc7bb 2592 golang optional golang-github-huandu-go-assert_1.1.5-1.debian.tar.xz
 8a118267e8e3e22d8874c662617eeae8 12524 golang optional golang-github-huandu-go-assert-dev_1.1.5-1_all.deb
 fe9901aeab8fbbe4078b8341e43840ef 6101 golang optional golang-github-huandu-go-assert_1.1.5-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEYgH7/9u94Hgi6ruWlvysDTh7WEcFAmBPz0lfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYy
MDFGQkZGREJCREUwNzgyMkVBQkI5Njk2RkNBQzBEMzg3QjU4NDcACgkQlvysDTh7
WEeBdRAAi2aDHNOH4wzyA85N6E79b5DllK6mhcpip/6Q59yRnnmzzKpbqHKifGSb
yjRwkXcnlvfnvK9HQlwbAC3gIOlQ9AMOddYGjoDiCqLazW4SlTfTEbnzgI3AqAeE
QCBok1VPPtHuID2ofGaJU1FzsBJ6gWf3T/EpyNEUKe8k9PC3tmWgnUJs9cnoINLm
rfhF4b6tuHiSuaRIIs++lLtp4Vdnq+FLgs792j6yxQZV+iJPbvknzPQs06AxwrGi
ywqXwMgLLIr0/Usr+/i0b52ggxYy39FQHqfcL3LsybH3HrdBYkPgOrYnJE5Tgfik
dvO3+eI7m+ZA1gqq126zR8xG0Hu0ZQ5icWoA1sYPNL3DdxYZfTHm3ySanUiAdLxi
t8v9N45MZeWF/sehVZHcmE8GuaVXeKrErGdWQ3Qw4f8HKxTisHsSXT6L9SRJlOAx
jnElnjvalEie0EiXgnqn3MqG7XcUV9zTCN2s9goxHpE9c+eUDavDgVdkpCoq69CU
9gameQXrizkunYUUoKkaufZW2FGdHYPfw9O4BB1USaCWPX4l6Rzq9Yc/Y+sReuno
EYiF1VJHuh0oRUcZgBGWVMOG969VczdXvdRf7522XHBGPnO0AUobb5iYTS55WN3U
Cz6VT1RN6jtDlx/pbzmswZEYM1HldR/aWniUeWAVOwreRW2BDP8=
=bIFX
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: