Documentation ¶
Overview ¶
Copyright 2017 HootSuite Media Inc.
Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Modified hereafter by contributors to runatlantis/atlantis.
Index ¶
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func Contains(tb testing.TB, exp interface{}, slice []string)
- func DirStructure(t *testing.T, structure map[string]interface{}) (string, func())
- func Equals(tb testing.TB, exp, act interface{})
- func ErrContains(tb testing.TB, substr string, act error)
- func ErrEquals(tb testing.TB, exp string, act error)
- func Ok(tb testing.TB, err error)
- func TempDir(t *testing.T) (string, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
Assert fails the test if the condition is false. Taken from https://github.com/benbjohnson/testing.
func DirStructure ¶ added in v0.4.0
func Equals ¶
Equals fails the test if exp is not equal to act. Taken from https://github.com/benbjohnson/testing.
func ErrContains ¶ added in v0.4.0
ErrContains fails the test if act is nil or act.Error() does not contain substr.
func Ok ¶
Ok fails the test if an err is not nil. Taken from https://github.com/benbjohnson/testing.
Types ¶
This section is empty.