Skip input framework entries with missing but non-optional fields

The framework so far populated data structures with missing fields
even when those fields are defined without the &optional
attribute. When using the attribute, such entries continue to get
populated.

Update tests to reflect focus on unset fields.
This commit is contained in:
Christian Kreibich 2021-06-16 16:55:28 -07:00
parent ef08605877
commit 937bdccab5
9 changed files with 122 additions and 59 deletions

View file

@ -5,49 +5,55 @@ Description
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 1], [s=<uninitialized>, ss=TEST]
destination[left = 3], [s=TEST, ss=<uninitialized>]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_NEW
Left, [i=3]
Right, [s=TEST, ss=<uninitialized>]
============EVENT============
Description
source, ../input.log
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 4], [s=TEST, ss=TEST]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_NEW
Left, [i=4]
Right, [s=TEST, ss=TEST]
============EVENT============
Description
source, ../input.log
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 1], [s=TEST2, ss=<uninitialized>]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_NEW
Left, [i=1]
Right, [s=<uninitialized>, ss=TEST]
Right, [s=TEST2, ss=<uninitialized>]
============EVENT============
Description
source, ../input.log
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 2], [s=<uninitialized>, ss=<uninitialized>]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_NEW
Left, [i=2]
Right, [s=<uninitialized>, ss=<uninitialized>]
============EVENT============
Description
source, ../input.log
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 1], [s=TEST, ss=<uninitialized>]
destination[left = 4], [s=TEST2, ss=TEST2]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_CHANGED
Left, [i=1]
Right, [s=<uninitialized>, ss=TEST]
Left, [i=4]
Right, [s=TEST, ss=TEST]
============EVENT============
Description
source, ../input.log
reader, Input::READER_ASCII
mode, Input::REREAD
name, ssh
destination[left = 2], [s=TEST, ss=TEST]
idx, A::Idx
val, A::Val
want_record, T
Type, Input::EVENT_CHANGED
Left, [i=2]
Right, [s=<uninitialized>, ss=<uninitialized>]