Skip to content

Commit

Permalink
Fix after code review
Browse files Browse the repository at this point in the history
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
  • Loading branch information
CatalinStratu committed Jan 2, 2023
1 parent 42b322c commit d07521a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions rdfloader/parser2v2/parse_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,21 +467,21 @@ func Test_rdfParser2_2_getFileFromNode(t *testing.T) {
// TestCase 10: Splitting of File definition into parents of different tags mustn't create new file objects.
fileDefinitions := []string{
`<spdx:Package rdf:about="#SPDXRef-Package1">
<spdx:hasFile>
<spdx:File rdf:about="http://anupam-VirtualBox/repo/SPDX2_time-1.9.tar.gz_1535120734-spdx.rdf#SPDXRef-item177">
<spdx:fileName>time-1.9/ChangeLog</spdx:fileName>
<spdx:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
</spdx:File>
</spdx:hasFile>
</spdx:Package>`,
<spdx:hasFile>
<spdx:File rdf:about="http://anupam-VirtualBox/repo/SPDX2_time-1.9.tar.gz_1535120734-spdx.rdf#SPDXRef-item177">
<spdx:fileName>time-1.9/ChangeLog</spdx:fileName>
<spdx:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
</spdx:File>
</spdx:hasFile>
</spdx:Package>`,
`<spdx:Package rdf:about="#SPDXRef-Package2">
<spdx:hasFile>
<spdx:File rdf:about="http://anupam-VirtualBox/repo/SPDX2_time-1.9.tar.gz_1535120734-spdx.rdf#SPDXRef-item177">
<spdx:licenseConcluded rdf:resource="http://spdx.org/rdf/terms#noassertion" />
<spdx:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#NOASSERTION" />
</spdx:File>
</spdx:hasFile>
</spdx:Package>`,
<spdx:hasFile>
<spdx:File rdf:about="http://anupam-VirtualBox/repo/SPDX2_time-1.9.tar.gz_1535120734-spdx.rdf#SPDXRef-item177">
<spdx:licenseConcluded rdf:resource="http://spdx.org/rdf/terms#noassertion" />
<spdx:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#NOASSERTION" />
</spdx:File>
</spdx:hasFile>
</spdx:Package>`,
}
parser, _ = parserFromBodyContent(strings.Join(fileDefinitions, ""))

Expand Down

0 comments on commit d07521a

Please sign in to comment.