From b154f496744528cee0b9d97e78f78df14906ae74 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Wed, 19 Jun 2024 17:01:42 +1000 Subject: [PATCH] addtional tests --- pkg/detector_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/detector_test.go b/pkg/detector_test.go index 9ba5776..e5379ab 100644 --- a/pkg/detector_test.go +++ b/pkg/detector_test.go @@ -158,6 +158,18 @@ func TestLicenceDetector_GuessFilenameReadmeLogic(t *testing.T) { }, }, }, + { + name: "README ISC", + args: args{ + filename: "README.md", + content: iscLicense, + }, + want: []LicenseGuess{ + { + Name: "ISC", + }, + }, + }, } for _, tt := range tests {