New Upstream Snapshot - golang-gopkg-go-playground-assert.v1

Ready changes

Summary

Merged new upstream version: 2.2.0 (was: 1.2.1).

Resulting package

Built on 2022-12-19T07:56 (took 4m18s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots golang-gopkg-go-playground-assert.v1-dev

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index daf913b..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-# Compiled Object files, Static and Dynamic libs (Shared Objects)
-*.o
-*.a
-*.so
-
-# Folders
-_obj
-_test
-
-# Architecture specific extensions/prefixes
-*.[568vq]
-[568vq].out
-
-*.cgo1.go
-*.cgo2.c
-_cgo_defun.c
-_cgo_gotypes.go
-_cgo_export.*
-
-_testmain.go
-
-*.exe
-*.test
-*.prof
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..3f715af
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,21 @@
+language: go
+go:
+  - 1.13.1
+  - tip
+matrix:
+  allow_failures:
+    - go: tip
+
+notifications:
+  email:
+    recipients: dean.karn@gmail.com
+    on_success: change
+    on_failure: always
+
+# Only clone the most recent commit.
+git:
+  depth: 1
+
+script:
+  - go test -v -race ./...
+
diff --git a/README.md b/README.md
index 6e40ab3..a2d2580 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
 Package assert
 ==============
 
-[![Build Status](https://semaphoreci.com/api/v1/projects/d5e4f510-5e1e-48d9-b38b-f447f270a057/488336/badge.svg)](https://semaphoreci.com/joeybloggs/assert)
-[![GoDoc](https://godoc.org/gopkg.in/go-playground/assert.v1?status.svg)](https://godoc.org/gopkg.in/go-playground/assert.v1)
+[![Build Status](https://travis-ci.org/go-playground/assert.svg?branch=master)](https://travis-ci.org/go-playground/assert)
+[![GoDoc](https://godoc.org/github.com/go-playground/assert?status.svg)](https://godoc.org/gopkg.in/go-playground/assert.v1)
 
 Package assert is a Basic Assertion library used along side native go testing
 
@@ -11,20 +11,16 @@ Installation
 
 Use go get.
 
-	go get gopkg.in/go-playground/assert.v1
+	go get github.com/go-playground/assert
 
-or to update
+Then import the assert package into your own code.
 
-	go get -u gopkg.in/go-playground/assert.v1
-
-Then import the validator package into your own code.
-
-	import . "gopkg.in/go-playground/assert.v1"
+	import . "github.com/go-playground/assert/v2"
 
 Usage and documentation
 ------
 
-Please see http://godoc.org/gopkg.in/go-playground/assert.v1 for detailed usage docs.
+Please see http://godoc.org/github.com/go-playground/assert for detailed usage docs.
 
 ##### Example:
 ```go
@@ -33,10 +29,10 @@ package whatever
 import (
 	"errors"
 	"testing"
-	. "gopkg.in/go-playground/assert.v1"
+	. "github.com/go-playground/assert/v2"
 )
 
-func AssertCustomErrorHandler(t *testing.T, errs map[string]string, key, expected string) {
+func AssertCustomErrorHandler(t testing.TB, errs map[string]string, key, expected string) {
 	val, ok := errs[key]
 
 	// using EqualSkip and NotEqualSkip as building blocks for my custom Assert function
@@ -74,13 +70,7 @@ func TestEqual(t *testing.T) {
 
 How to Contribute
 ------
-
-There will always be a development branch for each version i.e. `v1-development`. In order to contribute, 
-please make your pull requests against those branches.
-
-If the changes being proposed or requested are breaking changes, please create an issue, for discussion 
-or create a pull request against the highest development branch for example this package has a 
-v1 and v1-development branch however, there will also be a v2-development brach even though v2 doesn't exist yet.
+Make a PR.
 
 I strongly encourage everyone whom creates a usefull custom assertion function to contribute them and
 help make this package even better.
diff --git a/assert.go b/assert.go
index 74a89c5..a3a18ab 100644
--- a/assert.go
+++ b/assert.go
@@ -134,14 +134,14 @@ func regexMatches(regex interface{}, value string) (*regexp.Regexp, bool, error)
 }
 
 // Equal validates that val1 is equal to val2 and throws an error with line number
-func Equal(t *testing.T, val1, val2 interface{}) {
+func Equal(t testing.TB, val1, val2 interface{}) {
 	EqualSkip(t, 2, val1, val2)
 }
 
 // EqualSkip validates that val1 is equal to val2 and throws an error with line number
 // but the skip variable tells EqualSkip how far back on the stack to report the error.
 // This is a building block to creating your own more complex validation functions.
-func EqualSkip(t *testing.T, skip int, val1, val2 interface{}) {
+func EqualSkip(t testing.TB, skip int, val1, val2 interface{}) {
 
 	if !IsEqual(val1, val2) {
 		_, file, line, _ := runtime.Caller(skip)
@@ -151,14 +151,14 @@ func EqualSkip(t *testing.T, skip int, val1, val2 interface{}) {
 }
 
 // NotEqual validates that val1 is not equal val2 and throws an error with line number
-func NotEqual(t *testing.T, val1, val2 interface{}) {
+func NotEqual(t testing.TB, val1, val2 interface{}) {
 	NotEqualSkip(t, 2, val1, val2)
 }
 
 // NotEqualSkip validates that val1 is not equal to val2 and throws an error with line number
 // but the skip variable tells NotEqualSkip how far back on the stack to report the error.
 // This is a building block to creating your own more complex validation functions.
-func NotEqualSkip(t *testing.T, skip int, val1, val2 interface{}) {
+func NotEqualSkip(t testing.TB, skip int, val1, val2 interface{}) {
 
 	if IsEqual(val1, val2) {
 		_, file, line, _ := runtime.Caller(skip)
@@ -168,14 +168,14 @@ func NotEqualSkip(t *testing.T, skip int, val1, val2 interface{}) {
 }
 
 // PanicMatches validates that the panic output of running fn matches the supplied string
-func PanicMatches(t *testing.T, fn func(), matches string) {
+func PanicMatches(t testing.TB, fn func(), matches string) {
 	PanicMatchesSkip(t, 2, fn, matches)
 }
 
 // PanicMatchesSkip validates that the panic output of running fn matches the supplied string
 // but the skip variable tells PanicMatchesSkip how far back on the stack to report the error.
 // This is a building block to creating your own more complex validation functions.
-func PanicMatchesSkip(t *testing.T, skip int, fn func(), matches string) {
+func PanicMatchesSkip(t testing.TB, skip int, fn func(), matches string) {
 
 	_, file, line, _ := runtime.Caller(skip)
 
diff --git a/assert_test.go b/assert_test.go
index 743700e..6362181 100644
--- a/assert_test.go
+++ b/assert_test.go
@@ -16,7 +16,7 @@ import (
 // go test -coverprofile cover.out && go tool cover -html=cover.out -o cover.html
 //
 
-func MyCustomErrorHandler(t *testing.T, errs map[string]string, key, expected string) {
+func MyCustomErrorHandler(t testing.TB, errs map[string]string, key, expected string) {
 	val, ok := errs[key]
 	EqualSkip(t, 2, ok, true)
 	NotEqualSkip(t, 2, val, nil)
diff --git a/debian/changelog b/debian/changelog
index b1403da..1539839 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-gopkg-go-playground-assert.v1 (2.2.0-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Mon, 19 Dec 2022 07:53:21 -0000
+
 golang-gopkg-go-playground-assert.v1 (1.2.1-2) unstable; urgency=medium
 
   [ Alexandre Viau ]
diff --git a/doc.go b/doc.go
index 896f94a..01ffea7 100644
--- a/doc.go
+++ b/doc.go
@@ -8,10 +8,10 @@ validations.
 	import (
 		"errors"
 		"testing"
-		. "gopkg.in/go-playground/assert.v1"
+		. "github.com/go-playground/assert.v1"
 	)
 
-	func AssertCustomErrorHandler(t *testing.T, errs map[string]string, key, expected string) {
+	func AssertCustomErrorHandler(t testing.TB, errs map[string]string, key, expected string) {
 		val, ok := errs[key]
 
 		// using EqualSkip and NotEqualSkip as building blocks for my custom Assert function
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..52d4090
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module github.com/go-playground/assert/v2
+
+go 1.13

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/share/gocode/src/gopkg.in/go-playground/assert.v1/go.mod

No differences were encountered in the control files

More details

Full run details