aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspecter25 <ujjwalcoding012@gmail.com>2021-06-17 16:03:20 +0530
committerspecter25 <ujjwalcoding012@gmail.com>2021-06-17 16:03:20 +0530
commit7b5eb98e5a10ca560f21583bef794234ee57689a (patch)
treed733d1da8b35747373cc3817af70bd26a1efe497 /examples
parent2aa69408edfd8217396d2eab7567823340c66e0c (diff)
downloadspdx-tools-7b5eb98e5a10ca560f21583bef794234ee57689a.tar.gz
Add example files to jsonparser to tv saver example
- Add special relationship tests in jsonparser to tvsaver file Signed-off-by: specter25 <ujjwalcoding012@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/8-jsonpasrser2v2/result.txt25
-rw-r--r--examples/8-jsonpasrser2v2/test.json4
2 files changed, 17 insertions, 12 deletions
diff --git a/examples/8-jsonpasrser2v2/result.txt b/examples/8-jsonpasrser2v2/result.txt
index 88b1157..cba1bee 100644
--- a/examples/8-jsonpasrser2v2/result.txt
+++ b/examples/8-jsonpasrser2v2/result.txt
@@ -298,11 +298,24 @@ Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-File
Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-Package
Relationship: SPDXRef-Package DYNAMIC_LINK SPDXRef-Saxon
Relationship: SPDXRef-Package CONTAINS SPDXRef-JenaLib
+Relationship: SPDXRef-CommonsLangSrc GENERATED_FROM NOASSERTION
Relationship: SPDXRef-JenaLib CONTAINS SPDXRef-Package
Relationship: SPDXRef-File GENERATED_FROM SPDXRef-fromDoap-0
##### Annotations
+Annotator: Person: File Commenter
+AnnotationDate: 2011-01-29T18:30:22Z
+AnnotationType: OTHER
+SPDXREF: SPDXRef-File
+AnnotationComment: File level annotation
+
+Annotator: Person: Package Commenter
+AnnotationDate: 2011-01-29T18:30:22Z
+AnnotationType: OTHER
+SPDXREF: SPDXRef-Package
+AnnotationComment: Package level annotation
+
Annotator: Person: Joe Reviewer
AnnotationDate: 2010-02-10T00:00:00Z
AnnotationType: REVIEW
@@ -321,15 +334,3 @@ AnnotationType: OTHER
SPDXREF: SPDXRef-DOCUMENT
AnnotationComment: Document level annotation
-Annotator: Person: File Commenter
-AnnotationDate: 2011-01-29T18:30:22Z
-AnnotationType: OTHER
-SPDXREF: SPDXRef-File
-AnnotationComment: File level annotation
-
-Annotator: Person: Package Commenter
-AnnotationDate: 2011-01-29T18:30:22Z
-AnnotationType: OTHER
-SPDXREF: SPDXRef-Package
-AnnotationComment: Package level annotation
-
diff --git a/examples/8-jsonpasrser2v2/test.json b/examples/8-jsonpasrser2v2/test.json
index 6492034..64f3459 100644
--- a/examples/8-jsonpasrser2v2/test.json
+++ b/examples/8-jsonpasrser2v2/test.json
@@ -262,6 +262,10 @@
"relatedSpdxElement" : "SPDXRef-JenaLib",
"relationshipType" : "CONTAINS"
},{
+ "spdxElementId" : "SPDXRef-CommonsLangSrc",
+ "relatedSpdxElement" : "NOASSERTION",
+ "relationshipType" : "GENERATED_FROM"
+ } ,{
"spdxElementId" : "SPDXRef-JenaLib",
"relatedSpdxElement" : "SPDXRef-Package",
"relationshipType" : "CONTAINS"