Merge remote-tracking branch 'origin/topic/dnthayer/bif-tests'

* origin/topic/dnthayer/bif-tests:
  Improve "fmt" BIF documentation comment
  Improve tests of the type_name BIF
  Improve test cases for "order" BIF
  Fix documentation of sort BIF and add more tests
  Fix documentation for system_env BIF
  Deprecate the parse_dotted_addr BIF (use to_addr instead)
  Improve tests for to_port and type_name BIFs
  Improve tests for sort, order, and system_env BIFs
  Fix the join_string_vec BIF and add more tests
  Add more tests for previously-untested BIFs
  Add more tests for previously-untested BIFs
  Add more tests for previously-untested BIFs
  Add more tests for previously-untested BIFs
  Add tests for previously-untested strings BIFs
This commit is contained in:
Robin Sommer 2012-06-06 11:41:00 -07:00
commit 73cefcc11c
135 changed files with 1707 additions and 68 deletions

View file

@ -1467,6 +1467,16 @@ bool VectorType::DoUnserialize(UnserialInfo* info)
return yield_type != 0;
}
void VectorType::Describe(ODesc* d) const
{
if ( d->IsReadable() )
d->AddSP("vector of");
else
d->Add(int(Tag()));
yield_type->Describe(d);
}
BroType* base_type(TypeTag tag)
{
static BroType* base_types[NUM_TYPES];