netbird/client/cmd/status_test.go
2025-02-21 16:29:21 +01:00

16 lines
244 B
Go

package cmd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestParsingOfIP(t *testing.T) {
InterfaceIP := "192.168.178.123/16"
parsedIP := parseInterfaceIP(InterfaceIP)
assert.Equal(t, "192.168.178.123\n", parsedIP)
}