aboutsummaryrefslogtreecommitdiff
path: root/lib/test
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-15 17:14:54 +0700
committerShulhan <ms@kilabit.info>2026-01-15 17:26:33 +0700
commit7db8c302e1396eda40cd6a1e57f58ed791448556 (patch)
tree89231c859d728deff0582d276f1b809243b6b2f2 /lib/test
parentb1f8d27c7e22eb5624c56e890e51f0a34c7b9606 (diff)
downloadpakakeh.go-7db8c302e1396eda40cd6a1e57f58ed791448556.tar.xz
all: convert license and copyright to use SPDX identifiers
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
Diffstat (limited to 'lib/test')
-rw-r--r--lib/test/buffer_writer.go5
-rw-r--r--lib/test/data_test.go5
-rw-r--r--lib/test/example_test.go5
-rw-r--r--lib/test/httptest/httptest_test.go3
-rw-r--r--lib/test/httptest/simulate_request.go3
-rw-r--r--lib/test/httptest/simulate_result.go3
-rw-r--r--lib/test/httptest/simulate_result_test.go3
-rw-r--r--lib/test/mock/mock.go5
-rw-r--r--lib/test/mock/rand_reader.go5
-rw-r--r--lib/test/mock/readwriter.go3
-rw-r--r--lib/test/mock/readwriter_test.go3
-rw-r--r--lib/test/testdata/data1_test.txt3
-rw-r--r--lib/test/testdata/data2_test.txt3
-rw-r--r--lib/test/writer.go5
14 files changed, 36 insertions, 18 deletions
diff --git a/lib/test/buffer_writer.go b/lib/test/buffer_writer.go
index c9e3790b..9a0094d8 100644
--- a/lib/test/buffer_writer.go
+++ b/lib/test/buffer_writer.go
@@ -1,6 +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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package test
diff --git a/lib/test/data_test.go b/lib/test/data_test.go
index 139599a5..920bc763 100644
--- a/lib/test/data_test.go
+++ b/lib/test/data_test.go
@@ -1,6 +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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package test
diff --git a/lib/test/example_test.go b/lib/test/example_test.go
index 03264a3e..039515e3 100644
--- a/lib/test/example_test.go
+++ b/lib/test/example_test.go
@@ -1,6 +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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package test_test
diff --git a/lib/test/httptest/httptest_test.go b/lib/test/httptest/httptest_test.go
index 28bf031d..ce155d68 100644
--- a/lib/test/httptest/httptest_test.go
+++ b/lib/test/httptest/httptest_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package httptest_test
import (
diff --git a/lib/test/httptest/simulate_request.go b/lib/test/httptest/simulate_request.go
index fe931ce9..2166b412 100644
--- a/lib/test/httptest/simulate_request.go
+++ b/lib/test/httptest/simulate_request.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package httptest
import (
diff --git a/lib/test/httptest/simulate_result.go b/lib/test/httptest/simulate_result.go
index a37aa623..546bd885 100644
--- a/lib/test/httptest/simulate_result.go
+++ b/lib/test/httptest/simulate_result.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package httptest
import (
diff --git a/lib/test/httptest/simulate_result_test.go b/lib/test/httptest/simulate_result_test.go
index 297bdc06..df38a846 100644
--- a/lib/test/httptest/simulate_result_test.go
+++ b/lib/test/httptest/simulate_result_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package httptest_test
import (
diff --git a/lib/test/mock/mock.go b/lib/test/mock/mock.go
index 23da6c21..823b5e47 100644
--- a/lib/test/mock/mock.go
+++ b/lib/test/mock/mock.go
@@ -1,6 +1,5 @@
-// Copyright 2018, 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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
// Package mock provide a mocking for standard input, standard output,
// standard error, io.ReadWriter, and [rand.Reader].
diff --git a/lib/test/mock/rand_reader.go b/lib/test/mock/rand_reader.go
index aebc3260..1169ace1 100644
--- a/lib/test/mock/rand_reader.go
+++ b/lib/test/mock/rand_reader.go
@@ -1,6 +1,5 @@
-// Copyright 2024, 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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 Shulhan <ms@kilabit.info>
package mock
diff --git a/lib/test/mock/readwriter.go b/lib/test/mock/readwriter.go
index fa139078..66b10b2f 100644
--- a/lib/test/mock/readwriter.go
+++ b/lib/test/mock/readwriter.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package mock
import (
diff --git a/lib/test/mock/readwriter_test.go b/lib/test/mock/readwriter_test.go
index 0027a980..048f898b 100644
--- a/lib/test/mock/readwriter_test.go
+++ b/lib/test/mock/readwriter_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package mock
import (
diff --git a/lib/test/testdata/data1_test.txt b/lib/test/testdata/data1_test.txt
index 323ab56f..80965f7a 100644
--- a/lib/test/testdata/data1_test.txt
+++ b/lib/test/testdata/data1_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+
key: value
Description of test1.
>>>
diff --git a/lib/test/testdata/data2_test.txt b/lib/test/testdata/data2_test.txt
index 9a1ebdcc..6ada22a5 100644
--- a/lib/test/testdata/data2_test.txt
+++ b/lib/test/testdata/data2_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+
>>>
another test input.
diff --git a/lib/test/writer.go b/lib/test/writer.go
index 3d6471d5..63b0fcc0 100644
--- a/lib/test/writer.go
+++ b/lib/test/writer.go
@@ -1,6 +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.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package test