zeek/testing/btest/doc/broxygen/records.bro
Jon Siwek e3f74dc319 Change Broxygen config file format.
"<type> <pattern> <output-file>" seems a more natural order for
specifying targets.
2013-11-22 14:37:07 -06:00

26 lines
587 B
Text

# @TEST-EXEC: bro -b -X broxygen.config %INPUT
# @TEST-EXEC: btest-diff autogen-reST-records.rst
@TEST-START-FILE broxygen.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];
};