diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-11-18 07:46:43 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-11-18 07:46:43 +0000 |
commit | 2577786992fe644aa138db3488ef59b27f9d36f0 (patch) | |
tree | 61983b317de43435f6b807b5a8cba24d4b691e58 /devel/go-assert | |
parent | 42c38be3699f608b7e341b69bc11f75e8147272f (diff) | |
download | pkgsrc-2577786992fe644aa138db3488ef59b27f9d36f0.tar.gz |
devel/go-assert: import go-assert-0.0.0.20170929
Go assertion library (fork of stretchr/testify/require)
This is a fork of stretchr's assertion library that does two things:
It makes spotting differences in equality much easier. It uses
repr and diffmatchpatch to display structural differences in
colour.
Aborts tests on first assertion failure (the same behaviour as
stretchr/testify/require).
Diffstat (limited to 'devel/go-assert')
-rw-r--r-- | devel/go-assert/DESCR | 10 | ||||
-rw-r--r-- | devel/go-assert/Makefile | 23 | ||||
-rw-r--r-- | devel/go-assert/PLIST | 12 | ||||
-rw-r--r-- | devel/go-assert/buildlink3.mk | 16 | ||||
-rw-r--r-- | devel/go-assert/distinfo | 6 |
5 files changed, 67 insertions, 0 deletions
diff --git a/devel/go-assert/DESCR b/devel/go-assert/DESCR new file mode 100644 index 00000000000..e8b7181e34b --- /dev/null +++ b/devel/go-assert/DESCR @@ -0,0 +1,10 @@ +Go assertion library (fork of stretchr/testify/require) + +This is a fork of stretchr's assertion library that does two things: + + It makes spotting differences in equality much easier. It uses + repr and diffmatchpatch to display structural differences in + colour. + + Aborts tests on first assertion failure (the same behaviour as + stretchr/testify/require). diff --git a/devel/go-assert/Makefile b/devel/go-assert/Makefile new file mode 100644 index 00000000000..ccb7a845fa1 --- /dev/null +++ b/devel/go-assert/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2018/11/18 07:46:43 ryoon Exp $ + +DISTNAME= assert-0.0.0.20170929 +PKGNAME= go-${DISTNAME} +MASTER_SITES= ${MASTER_SITE_GITHUB:=alecthomas/} +CATEGORIES= devel +GITHUB_PROJECT= assert +GITHUB_TAG= 405dbfeb8e38effee6e723317226e93fff912d06 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/alecthomas/assert +COMMENT= Go assertion library +LICENSE= mit + +GO_DIST_BASE= assert-${GITHUB_TAG} +GO_SRCPATH= github.com/alecthomas/assert + +.include "../../devel/go-colour/buildlink3.mk" +.include "../../devel/go-isatty/buildlink3.mk" +.include "../../devel/go-repr/buildlink3.mk" +.include "../../textproc/go-diff/buildlink3.mk" +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/go-assert/PLIST b/devel/go-assert/PLIST new file mode 100644 index 00000000000..ff556d1e7d8 --- /dev/null +++ b/devel/go-assert/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2018/11/18 07:46:43 ryoon Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/alecthomas/assert.a +gopkg/src/github.com/alecthomas/assert/LICENCE.txt +gopkg/src/github.com/alecthomas/assert/README.md +gopkg/src/github.com/alecthomas/assert/_example/diff.png +gopkg/src/github.com/alecthomas/assert/_example/example_test.go +gopkg/src/github.com/alecthomas/assert/assertions.go +gopkg/src/github.com/alecthomas/assert/diff.go +gopkg/src/github.com/alecthomas/assert/doc.go +gopkg/src/github.com/alecthomas/assert/errors.go +gopkg/src/github.com/alecthomas/assert/forward_assertions.go +gopkg/src/github.com/alecthomas/assert/http_assertions.go diff --git a/devel/go-assert/buildlink3.mk b/devel/go-assert/buildlink3.mk new file mode 100644 index 00000000000..1488d6f4c06 --- /dev/null +++ b/devel/go-assert/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/11/18 07:46:43 ryoon Exp $ + +BUILDLINK_TREE+= go-assert + +.if !defined(GO_ASSERT_BUILDLINK3_MK) +GO_ASSERT_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-assert= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-assert?= build + +BUILDLINK_API_DEPENDS.go-assert+= go-assert>=0.0.0.20170929 +BUILDLINK_PKGSRCDIR.go-assert?= ../../devel/go-assert + +.endif # GO_ASSERT_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-assert diff --git a/devel/go-assert/distinfo b/devel/go-assert/distinfo new file mode 100644 index 00000000000..f99b9251b3f --- /dev/null +++ b/devel/go-assert/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/11/18 07:46:43 ryoon Exp $ + +SHA1 (assert-0.0.0.20170929-405dbfeb8e38effee6e723317226e93fff912d06.tar.gz) = d764a9788c20f05c6e67cd3dc1f0050cb93ec73e +RMD160 (assert-0.0.0.20170929-405dbfeb8e38effee6e723317226e93fff912d06.tar.gz) = 8c4d3bfbaf5b35f4ade9294f1934714de7eae8ee +SHA512 (assert-0.0.0.20170929-405dbfeb8e38effee6e723317226e93fff912d06.tar.gz) = 182f141d83bb9b1d7d94cf3b1beb2e7c4074f9be3bd0250e3423fe64e6182f34b54b36e517397aa88440e42fe116973ed435bde6b8343df299db6ebb32591331 +Size (assert-0.0.0.20170929-405dbfeb8e38effee6e723317226e93fff912d06.tar.gz) = 71099 bytes |