Lines Matching full:annotator
20 // TestCase 2: Invalid annotator type
25 t.Errorf("should've raised an error for an unknown annotator type")
28 // TestCase 3: Valid annotator
33 t.Errorf("unexpected error for a valid annotator")
35 if ann.Annotator.AnnotatorType != "Person" {
36 t.Errorf("wrnog annotator type: expected: %s, found: %s", "Person", ann.Annotator)
38 if ann.Annotator.Annotator != "Rishabh" {
39 t.Errorf("wrong annotator: expected: %s, found: %s", "Rishabh", ann.Annotator)
99 // TestCase 1: invalid annotator must raise an error
104 <spdx:annotator>Company: some company</spdx:annotator>
111 t.Errorf("wrong annotator type should've raised an error")
119 <spdx:annotator>Person: Jane Doe</spdx:annotator>
134 <spdx:annotator>Person: Jane Doe</spdx:annotator>
150 <spdx:annotator>Person: Jane Doe</spdx:annotator>
173 if expectedAnnotator != ann.Annotator.Annotator {
174 t.Errorf(`expected: "%s", found "%s"`, expectedAnnotator, ann.Annotator)
176 if ann.Annotator.AnnotatorType != "Person" {
177 t.Errorf(`expected: "%s", found "%s"`, "Person", ann.Annotator.AnnotatorType)