mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +00:00
Add test package for testing GetServiceNames
This commit is contained in:
parent
3a7a21495d
commit
8493fcdc93
2 changed files with 15 additions and 0 deletions
15
utils/osdetail/test/main.go
Normal file
15
utils/osdetail/test/main.go
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/Safing/portbase/utils/osdetail"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
names, err := osdetail.GetAllServiceNames()
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
fmt.Printf("%+v\n", names)
|
||||||
|
}
|
BIN
utils/osdetail/test/test.exe
Executable file
BIN
utils/osdetail/test/test.exe
Executable file
Binary file not shown.
Loading…
Add table
Reference in a new issue