zeek/testing/btest/doc/zeekygen/records.zeek
Daniel Thayer 1a74516db1 Rename all BRO-prefixed environment variables
For backward compatibility when reading values, we first check
the ZEEK-prefixed value, and if not set, then check the corresponding
BRO-prefixed value.
2019-05-22 00:12:31 -05:00

26 lines
645 B
Text

# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
# @TEST-EXEC: btest-diff autogen-reST-records.rst
@TEST-START-FILE zeekygen.config
identifier TestRecord* autogen-reST-records.rst
@TEST-END-FILE
# undocumented record
type TestRecord1: record {
field1: bool;
field2: count;
};
## Here's the ways records and record fields can be documented.
type TestRecord2: record {
## document ``A``
A: count;
B: bool; ##< document ``B``
## and now ``C``
C: TestRecord1; ##< is a declared type
## sets/tables should show the index types
D: set[count, bool];
};