aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-06 15:46:14 +0700
committerShulhan <ms@kilabit.info>2026-01-06 15:46:14 +0700
commit7ba3a36f94b5dd274ecc932895a05072e6e0080c (patch)
tree0cc0e158853540b3b193c7842ee3301b2cd25500 /testdata
parent2cda75bc9385da199b4db5f6cc2692bfd694fcf1 (diff)
downloadspdxconv-7ba3a36f94b5dd274ecc932895a05072e6e0080c.tar.xz
all: refactoring loadConfig and scanForSCM
Previously, given the following command, $ spdxconv $path the loadConfig load the configuration from the path directory. This changes it to load the configuration from the current working directory where the tools run, not from $path directory. While for scanForSCM, previously its detect SCM from $path up to "/", now its scan from $path to current working directory only. While at it, we rename the dummySCM type to noSCM.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scan_no_scm/node_modules/dummy1
-rw-r--r--testdata/scan_no_scm/test.go3
-rw-r--r--testdata/scan_no_scm/test.html5
-rw-r--r--testdata/scan_no_scm/test.sh3
-rw-r--r--testdata/scan_no_scm/vendor/dummy1
5 files changed, 13 insertions, 0 deletions
diff --git a/testdata/scan_no_scm/node_modules/dummy b/testdata/scan_no_scm/node_modules/dummy
new file mode 100644
index 0000000..4e16aa0
--- /dev/null
+++ b/testdata/scan_no_scm/node_modules/dummy
@@ -0,0 +1 @@
+Dummy content for node_modules directory. \ No newline at end of file
diff --git a/testdata/scan_no_scm/test.go b/testdata/scan_no_scm/test.go
new file mode 100644
index 0000000..46e2bd9
--- /dev/null
+++ b/testdata/scan_no_scm/test.go
@@ -0,0 +1,3 @@
+// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file. \ No newline at end of file
diff --git a/testdata/scan_no_scm/test.html b/testdata/scan_no_scm/test.html
new file mode 100644
index 0000000..da2491e
--- /dev/null
+++ b/testdata/scan_no_scm/test.html
@@ -0,0 +1,5 @@
+<!--
+Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+--> \ No newline at end of file
diff --git a/testdata/scan_no_scm/test.sh b/testdata/scan_no_scm/test.sh
new file mode 100644
index 0000000..8fd6949
--- /dev/null
+++ b/testdata/scan_no_scm/test.sh
@@ -0,0 +1,3 @@
+# Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file. \ No newline at end of file
diff --git a/testdata/scan_no_scm/vendor/dummy b/testdata/scan_no_scm/vendor/dummy
new file mode 100644
index 0000000..b244b09
--- /dev/null
+++ b/testdata/scan_no_scm/vendor/dummy
@@ -0,0 +1 @@
+Dummy content for vendor directory. \ No newline at end of file