Lines Matching full:enumerator
19 struct self_id_sequence_enumerator enumerator; in test_self_id_sequence_enumerator_valid() local
23 enumerator.cursor = valid_sequences; in test_self_id_sequence_enumerator_valid()
24 enumerator.quadlet_count = ARRAY_SIZE(valid_sequences); in test_self_id_sequence_enumerator_valid()
26 entry = self_id_sequence_enumerator_next(&enumerator, &quadlet_count); in test_self_id_sequence_enumerator_valid()
29 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 6); in test_self_id_sequence_enumerator_valid()
31 entry = self_id_sequence_enumerator_next(&enumerator, &quadlet_count); in test_self_id_sequence_enumerator_valid()
34 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 4); in test_self_id_sequence_enumerator_valid()
36 entry = self_id_sequence_enumerator_next(&enumerator, &quadlet_count); in test_self_id_sequence_enumerator_valid()
39 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 1); in test_self_id_sequence_enumerator_valid()
41 entry = self_id_sequence_enumerator_next(&enumerator, &quadlet_count); in test_self_id_sequence_enumerator_valid()
44 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 0); in test_self_id_sequence_enumerator_valid()
46 entry = self_id_sequence_enumerator_next(&enumerator, &quadlet_count); in test_self_id_sequence_enumerator_valid()
55 struct self_id_sequence_enumerator enumerator; in test_self_id_sequence_enumerator_invalid() local
59 enumerator.cursor = invalid_sequences; in test_self_id_sequence_enumerator_invalid()
60 enumerator.quadlet_count = ARRAY_SIZE(invalid_sequences); in test_self_id_sequence_enumerator_invalid()
62 entry = self_id_sequence_enumerator_next(&enumerator, &count); in test_self_id_sequence_enumerator_invalid()