[WIP] Swap over to yara-x; improve performance and readability #2267
Annotations
2 errors
Run chainguard-dev/actions/gofmt@9d943fc9889a0c0795e3c2bd4b949a9b610ac02e:
pkg/action/scan_test.go#L1
Please run gofmt -s.
diff --git a/pkg/action/scan_test.go b/pkg/action/scan_test.go
index 774a60a..291208e 100644
--- a/pkg/action/scan_test.go
+++ b/pkg/action/scan_test.go
@@ -9,10 +9,10 @@ import (
func TestCleanPath(t *testing.T) {
tests := []struct {
- name string
- path string
- prefix string
- want string
+ name string
+ path string
+ prefix string
+ want string
}{
{
name: "expected behavior",
@@ -33,9 +33,9 @@ func TestCleanPath(t *testing.T) {
want: "/test.txt",
},
{
- name: "non-existent path",
- path: "does_not_exist/test.txt",
- prefix: "temp",
+ name: "non-existent path",
+ path: "does_not_exist/test.txt",
+ prefix: "temp",
},
{
name: "path prefix mismatch",
|
Run chainguard-dev/actions/gofmt@9d943fc9889a0c0795e3c2bd4b949a9b610ac02e
Process completed with exit code 1.
|
Loading