mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

In his ZeekWeek 2022 presentation, @stevesmoot mentioned that he had a difficult time looking up enum names when all he had was a string naming the type. Add support to enum_names() to transparently lookup the type if a string is provided. This is similar in how record_fields() behaves when being passed a string.
33 lines
349 B
Text
33 lines
349 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
with types
|
|
{
|
|
Monochrome::WHITE,
|
|
Monochrome::BLACK
|
|
}
|
|
{
|
|
RED,
|
|
GREEN,
|
|
PURPLE,
|
|
BLUE
|
|
}
|
|
{
|
|
Monochrome::WHITE,
|
|
Monochrome::BLACK
|
|
}
|
|
with strings
|
|
{
|
|
RED,
|
|
GREEN,
|
|
PURPLE,
|
|
BLUE
|
|
}
|
|
{
|
|
RED,
|
|
GREEN,
|
|
PURPLE,
|
|
BLUE
|
|
}
|
|
{
|
|
Monochrome::WHITE,
|
|
Monochrome::BLACK
|
|
}
|