Not
Not operator compares data against the not expected value. During a match, it must not match to succeed.
Not is the same operator as None with only one argument. It is
provided as a more readable function when only one argument is
needed.
See also
None.
See also Not godoc.
Example
CmpNot shortcut
CmpNot is a shortcut for:
See above for details.
Returns true if the test is OK, false if it fails.
If t is a *T then its Config field is inherited.
args… are optional and allow to name the test. This name is
used in case of failure to qualify the test. If len(args) > 1 and
the first item of args is a string and contains a ‘%’ rune then
fmt.Fprintf is used to compose the name, else args are passed to
fmt.Fprint. Do not forget it is the name of the test, not the
reason of a potential failure.
See also CmpNot godoc.
Example
T.Not shortcut
Not is a shortcut for:
See above for details.
Returns true if the test is OK, false if it fails.
args… are optional and allow to name the test. This name is
used in case of failure to qualify the test. If len(args) > 1 and
the first item of args is a string and contains a ‘%’ rune then
fmt.Fprintf is used to compose the name, else args are passed to
fmt.Fprint. Do not forget it is the name of the test, not the
reason of a potential failure.
See also T.Not godoc.