aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/require/doc.go
diff options
context:
space:
mode:
authorRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-10 09:54:48 +0800
committerRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-11 07:29:41 +0800
commit5d895db2fd9e6c381f5696f84b1b64d21df9d337 (patch)
treee20a12d9f2b1290145e4dcea2c4fece1b43b6824 /vendor/github.com/stretchr/testify/require/doc.go
parent3d88ecd61ae7b43f1227acafaec71e49093491b8 (diff)
downloadgo-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.gz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.bz2
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.lz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.xz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.zst
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.zip
vendor: add github.com/stretchr/testify test dependency
github.com/stretchr/testify is a useful library for doing assertion in tests. It makes assertions in test more less verbose and more comfortable to read and use.
Diffstat (limited to 'vendor/github.com/stretchr/testify/require/doc.go')
-rw-r--r--vendor/github.com/stretchr/testify/require/doc.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/require/doc.go b/vendor/github.com/stretchr/testify/require/doc.go
new file mode 100644
index 000000000..169de3922
--- /dev/null
+++ b/vendor/github.com/stretchr/testify/require/doc.go
@@ -0,0 +1,28 @@
+// Package require implements the same assertions as the `assert` package but
+// stops test execution when a test fails.
+//
+// Example Usage
+//
+// The following is a complete example using require in a standard test function:
+// import (
+// "testing"
+// "github.com/stretchr/testify/require"
+// )
+//
+// func TestSomething(t *testing.T) {
+//
+// var a string = "Hello"
+// var b string = "Hello"
+//
+// require.Equal(t, a, b, "The two words should be the same.")
+//
+// }
+//
+// Assertions
+//
+// The `require` package have same global functions as in the `assert` package,
+// but instead of returning a boolean result they call `t.FailNow()`.
+//
+// Every assertion function also takes an optional string message as the final argument,
+// allowing custom error messages to be appended to the message the assertion method outputs.
+package require