In module Test§

See primary documentation in context for sub nok

multi sub nok(Mu $cond$desc = '')

The nok function marks a test as passed if the given $cond evaluates to False. It also accepts an optional description of the test as second argument.

my $responsemy $query...;
nok $query.error'Query completed without error';