nf/nft/nfctl/version/version_test.go

18 lines
306 B
Go
Raw Normal View History

2024-07-14 17:26:48 +08:00
package version
import (
"github.com/loveuer/nf/nft/log"
"testing"
)
func TestUpgradePrint(t *testing.T) {
2024-07-14 21:17:40 +08:00
log.SetLogLevel(log.LogLevelDebug)
2024-07-14 17:26:48 +08:00
UpgradePrint("v24.07.14-r5")
}
func TestCheck(t *testing.T) {
log.SetLogLevel(log.LogLevelDebug)
2024-07-14 21:17:40 +08:00
v := Check(true, true, 1)
2024-07-14 17:26:48 +08:00
t.Logf("got version: %s", v)
}