diff options
author | Steve Winslow <steve@swinslow.net> | 2020-05-09 21:04:15 -0400 |
---|---|---|
committer | Steve Winslow <steve@swinslow.net> | 2020-05-09 21:04:15 -0400 |
commit | da0d742261dc36eada8660b8826296a613877096 (patch) | |
tree | 5afd56f1faff4a7c325a0c037a7058d12c25f181 /tvsaver/saver2v1/save_annotation_test.go | |
parent | 1500a6e983917e450f8da95b86418d8db3af926f (diff) | |
download | spdx-tools-da0d742261dc36eada8660b8826296a613877096.tar.gz |
Refactor tvsaver to handle element ID maps
Signed-off-by: Steve Winslow <steve@swinslow.net>
Diffstat (limited to 'tvsaver/saver2v1/save_annotation_test.go')
-rw-r--r-- | tvsaver/saver2v1/save_annotation_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tvsaver/saver2v1/save_annotation_test.go b/tvsaver/saver2v1/save_annotation_test.go index 077e9f8..9cb0277 100644 --- a/tvsaver/saver2v1/save_annotation_test.go +++ b/tvsaver/saver2v1/save_annotation_test.go @@ -16,7 +16,7 @@ func TestSaver2_1AnnotationSavesTextForPerson(t *testing.T) { AnnotatorType: "Person", AnnotationDate: "2018-10-10T17:52:00Z", AnnotationType: "REVIEW", - AnnotationSPDXIdentifier: "SPDXRef-DOCUMENT", + AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"), AnnotationComment: "This is an annotation about the SPDX document", } @@ -49,7 +49,7 @@ func TestSaver2_1AnnotationSavesTextForOrganization(t *testing.T) { AnnotatorType: "Organization", AnnotationDate: "2018-10-10T17:52:00Z", AnnotationType: "REVIEW", - AnnotationSPDXIdentifier: "SPDXRef-DOCUMENT", + AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"), AnnotationComment: "This is an annotation about the SPDX document", } @@ -82,7 +82,7 @@ func TestSaver2_1AnnotationSavesTextForTool(t *testing.T) { AnnotatorType: "Tool", AnnotationDate: "2018-10-10T17:52:00Z", AnnotationType: "REVIEW", - AnnotationSPDXIdentifier: "SPDXRef-DOCUMENT", + AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"), AnnotationComment: "This is an annotation about the SPDX document", } |