Skip to content

Commit

Permalink
test: test enumarate
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed May 9, 2024
1 parent 8643a66 commit 8377f70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nfpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import (

var mtime = time.Date(2023, 11, 5, 23, 15, 17, 0, time.UTC)

func TestEnumerate(t *testing.T) {
nfpm.RegisterPackager("deb", nil)
result := nfpm.Enumerate()
require.NotEmpty(t, result)
}

func TestRegister(t *testing.T) {
format := "TestRegister"
pkgr := &fakePackager{}
Expand Down

0 comments on commit 8377f70

Please sign in to comment.