mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Stmt: Introduce assert statement and related hooks
including two hooks called assertion_failure() and assertion_result() for customization and tracking of assertion results.
This commit is contained in:
parent
a25b1a9d59
commit
25ea678626
41 changed files with 635 additions and 3 deletions
13
testing/btest/Baseline/language.assert-misc/out
Normal file
13
testing/btest/Baseline/language.assert-misc/out
Normal file
|
@ -0,0 +1,13 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
f, lambda_<505728364269398358>
|
||||
{
|
||||
assert 0 < getpid(), fmt("my pid is funny: %s", getpid());
|
||||
}
|
||||
g, lambda_<8496146571423528161>
|
||||
{
|
||||
assert to_count("42") == 42;
|
||||
}
|
||||
test_function, test_function
|
||||
{
|
||||
assert 0 < getpid();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue