File: package_test.go

package info (click to toggle)
goss 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: sh: 984; makefile: 139
file content (15 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package system

import (
	"testing"
)

func TestIsSupportedPackageManager(t *testing.T) {
	if IsSupportedPackageManager("na") {
		t.Fatal("na should not be a valid package manager")
	}

	if !IsSupportedPackageManager("rpm") {
		t.Fatal("rpm should be a valid package manager")
	}
}