testutil
package v0.24.0
Go to latest Published: Aug 5, 2025 License:Apache-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:5 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
testutil
some testing functions copied out of github.com/stretchr/testify, which were originally used by atomicfile
MIT LicenseCopyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
Documentation¶
Index¶
- func AssertEqual(t *testing.T, a, b any, msgAndArgs ...string)
- func AssertNoError(t *testing.T, err error, msgAndArgs ...string)
- func Fail(t testing.TB, xs string, msgs ...string)
- func Failnow(t testing.TB, xs string, msgs ...string)
- func ObjectsAreEqual(expected, actual any) bool
- func ObjectsAreEqualValues(expected, actual any) bool
- func RequireEqual(t *testing.T, a, b any, msgAndArgs ...string)
- func RequireEqualValues(t *testing.T, a, b any, msgAndArgs ...string)
- func RequireError(t *testing.T, err error, msgAndArgs ...string)
- func RequireNoError(t *testing.T, err error, msgAndArgs ...string)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcObjectsAreEqual¶
Types¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.