In module Test§

See primary documentation in context for sub nok.

multi 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 $response; my $query; ...;
nok $query.error, 'Query completed without error';