Skip to content

Commit

Permalink
test: add some initial examples
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 28, 2024
1 parent 6f8f8a3 commit b32bc50
Show file tree
Hide file tree
Showing 2 changed files with 525 additions and 0 deletions.
114 changes: 114 additions & 0 deletions internal/output/__snapshots__/vertical_test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

[TestPrintVerticalResults/no_sources - 1]

---

[TestPrintVerticalResults/multiple_sources_with_no_packages - 1]
path/to/my/first/lockfile: found 0 packages
no known vulnerabilities found
path/to/my/second/lockfile: found 0 packages
no known vulnerabilities found
path/to/my/third/lockfile: found 0 packages
no known vulnerabilities found

---

[TestPrintVerticalResults/one_source_with_one_package,_no_vulnerabilities - 1]
path/to/my/first/lockfile: found 1 package
no known vulnerabilities found

---

[TestPrintVerticalResults/one_source_with_no_packages - 1]
path/to/my/first/lockfile: found 0 packages
no known vulnerabilities found

---

[TestPrintVerticalResults/multiple_sources_with_a_mixed_count_of_packages,_no_vulnerabilities - 1]
path/to/my/first/lockfile: found 1 package
no known vulnerabilities found
path/to/my/second/lockfile: found 2 packages
no known vulnerabilities found
path/to/my/third/lockfile: found 2 packages
no known vulnerabilities found

---

[TestPrintVerticalResults/one_source_with_one_package_and_one_vulnerability - 1]
path/to/my/first/lockfile: found 1 package

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)

1 known vulnerability found in path/to/my/first/lockfile

---

[TestPrintVerticalResults/multiple_sources_with_a_mixed_count_of_packages,_and_multiple_vulnerabilities - 1]
path/to/my/first/lockfile: found 2 packages

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)
OSV-5: Something scarier! (https://osv.dev/OSV-5)
mine1@1.2.2 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)

3 known vulnerabilities found in path/to/my/first/lockfile
path/to/my/second/lockfile: found 2 packages

mine2@3.2.5 is affected by the following vulnerabilities:
OSV-2: Something scary! (https://osv.dev/OSV-2)
mine3@0.4.1 is affected by the following vulnerabilities:
OSV-3: Something scary! (https://osv.dev/OSV-3)
OSV-5: Something scary! (https://osv.dev/OSV-5)

3 known vulnerabilities found in path/to/my/second/lockfile

---

[TestPrintVerticalResults/multiple_sources_with_a_mixed_count_of_packages,_some_vulnerabilities - 1]
path/to/my/first/lockfile: found 1 package

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)

1 known vulnerability found in path/to/my/first/lockfile
path/to/my/second/lockfile: found 2 packages

mine2@3.2.5 is affected by the following vulnerabilities:
OSV-2: Something scary! (https://osv.dev/OSV-2)

1 known vulnerability found in path/to/my/second/lockfile
path/to/my/third/lockfile: found 2 packages

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)

1 known vulnerability found in path/to/my/third/lockfile

---

[TestPrintVerticalResults/two_sources_with_packages,_one_vulnerability - 1]
path/to/my/first/lockfile: found 1 package

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: Something scary! (https://osv.dev/OSV-1)

1 known vulnerability found in path/to/my/first/lockfile
path/to/my/second/lockfile: found 1 package
no known vulnerabilities found

---

[TestPrintVerticalResults/one_source_with_vulnerabilities,_some_missing_content - 1]
path/to/my/first/lockfile: found 2 packages

mine1@1.2.3 is affected by the following vulnerabilities:
OSV-1: This vulnerability allows for some very scary stuff to happen - seriously,... (https://osv.dev/OSV-1)
mine3@0.10.2-rc is affected by the following vulnerabilities:
OSV-2: (no details available) (https://osv.dev/OSV-2)

2 known vulnerabilities found in path/to/my/first/lockfile

---
Loading

0 comments on commit b32bc50

Please sign in to comment.