Lines Matching full:annotator
16 err := parser.parsePairForAnnotation2_1("Annotator", "Person: John Doe (jdoe@example.com)")
27 // start with valid annotator
28 err := parser.parsePair2_1("Annotator", "Person: John Doe (jdoe@example.com)")
46 t.Errorf("expected error when calling parsePair2_1 for AnnotationDate without Annotator first")
50 t.Errorf("expected error when calling parsePair2_1 for AnnotationType without Annotator first")
54 t.Errorf("expected error when calling parsePair2_1 for SPDXREF without Annotator first")
58 t.Errorf("expected error when calling parsePair2_1 for AnnotationComment without Annotator first")
68 // Annotator without email address
69 err := parser.parsePair2_1("Annotator", "Person: John Doe")
73 if parser.ann.Annotator.Annotator != "John Doe" {
74 t.Errorf("got %v for Annotator, expected John Doe", parser.ann.Annotator)
76 if parser.ann.Annotator.AnnotatorType != "Person" {
77 t.Errorf("got %v for AnnotatorType, expected Person", parser.ann.Annotator.AnnotatorType)
127 err := parser.parsePair2_1("Annotator", "John Doe (jdoe@example.com)")
138 err := parser.parsePair2_1("Annotator", "Human: John Doe (jdoe@example.com)")
149 // start with valid annotator
150 err := parser.parsePair2_1("Annotator", "Person: John Doe (jdoe@example.com)")