ecl-logo Documentation

AnyInformedTest

AnyInformedTest[packet,fields]test

returns a test to be used in RunUnitTest for whether at least one of the values of the given `fields` is non-Null.

Details

  • The test uses NullQ to determine whether the fields are Null or not Null. Please see NullQ for details on what inputs pass or fail NullQ.
  • Input
    Output

Examples

Basic Examples  (3)

Generate an EmeraldTest Object on an Packet that should pass due to all fields being non-Null:

Generate an EmeraldTest Object on an Packet that should pass due at least one field being non-Null:

Generate an EmeraldTest Object on an Packet that should fail due to all of the fields being Null: