$54 GRAYBYTE WORDPRESS FILE MANAGER $37

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.243.2 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/go/pkg/mod/github.com/go-openapi/strfmt@v0.21.7/conv/

HOME
Current File : /opt/go/pkg/mod/github.com/go-openapi/strfmt@v0.21.7/conv//default_test.go
package conv

import (
	"testing"

	"github.com/stretchr/testify/assert"

	"github.com/go-openapi/strfmt"
)

func TestBase64Value(t *testing.T) {
	assert.Equal(t, strfmt.Base64(nil), Base64Value(nil))
	base64 := strfmt.Base64([]byte{4, 2})
	assert.Equal(t, base64, Base64Value(&base64))
}

func TestURIValue(t *testing.T) {
	assert.Equal(t, strfmt.URI(""), URIValue(nil))
	value := strfmt.URI("foo")
	assert.Equal(t, value, URIValue(&value))
}

func TestEmailValue(t *testing.T) {
	assert.Equal(t, strfmt.Email(""), EmailValue(nil))
	value := strfmt.Email("foo")
	assert.Equal(t, value, EmailValue(&value))
}

func TestHostnameValue(t *testing.T) {
	assert.Equal(t, strfmt.Hostname(""), HostnameValue(nil))
	value := strfmt.Hostname("foo")
	assert.Equal(t, value, HostnameValue(&value))
}

func TestIPv4Value(t *testing.T) {
	assert.Equal(t, strfmt.IPv4(""), IPv4Value(nil))
	value := strfmt.IPv4("foo")
	assert.Equal(t, value, IPv4Value(&value))
}

func TestIPv6Value(t *testing.T) {
	assert.Equal(t, strfmt.IPv6(""), IPv6Value(nil))
	value := strfmt.IPv6("foo")
	assert.Equal(t, value, IPv6Value(&value))
}

func TestCIDRValue(t *testing.T) {
	assert.Equal(t, strfmt.CIDR(""), CIDRValue(nil))
	value := strfmt.CIDR("foo")
	assert.Equal(t, value, CIDRValue(&value))
}

func TestMACValue(t *testing.T) {
	assert.Equal(t, strfmt.MAC(""), MACValue(nil))
	value := strfmt.MAC("foo")
	assert.Equal(t, value, MACValue(&value))
}

func TestUUIDValue(t *testing.T) {
	assert.Equal(t, strfmt.UUID(""), UUIDValue(nil))
	value := strfmt.UUID("foo")
	assert.Equal(t, value, UUIDValue(&value))
}

func TestUUID3Value(t *testing.T) {
	assert.Equal(t, strfmt.UUID3(""), UUID3Value(nil))
	value := strfmt.UUID3("foo")
	assert.Equal(t, value, UUID3Value(&value))
}

func TestUUID4Value(t *testing.T) {
	assert.Equal(t, strfmt.UUID4(""), UUID4Value(nil))
	value := strfmt.UUID4("foo")
	assert.Equal(t, value, UUID4Value(&value))
}

func TestUUID5Value(t *testing.T) {
	assert.Equal(t, strfmt.UUID5(""), UUID5Value(nil))
	value := strfmt.UUID5("foo")
	assert.Equal(t, value, UUID5Value(&value))
}

func TestISBNValue(t *testing.T) {
	assert.Equal(t, strfmt.ISBN(""), ISBNValue(nil))
	value := strfmt.ISBN("foo")
	assert.Equal(t, value, ISBNValue(&value))
}

func TestISBN10Value(t *testing.T) {
	assert.Equal(t, strfmt.ISBN10(""), ISBN10Value(nil))
	value := strfmt.ISBN10("foo")
	assert.Equal(t, value, ISBN10Value(&value))
}

func TestISBN13Value(t *testing.T) {
	assert.Equal(t, strfmt.ISBN13(""), ISBN13Value(nil))
	value := strfmt.ISBN13("foo")
	assert.Equal(t, value, ISBN13Value(&value))
}

func TestCreditCardValue(t *testing.T) {
	assert.Equal(t, strfmt.CreditCard(""), CreditCardValue(nil))
	value := strfmt.CreditCard("foo")
	assert.Equal(t, value, CreditCardValue(&value))
}

func TestSSNValue(t *testing.T) {
	assert.Equal(t, strfmt.SSN(""), SSNValue(nil))
	value := strfmt.SSN("foo")
	assert.Equal(t, value, SSNValue(&value))
}

func TestHexColorValue(t *testing.T) {
	assert.Equal(t, strfmt.HexColor(""), HexColorValue(nil))
	value := strfmt.HexColor("foo")
	assert.Equal(t, value, HexColorValue(&value))
}

func TestRGBColorValue(t *testing.T) {
	assert.Equal(t, strfmt.RGBColor(""), RGBColorValue(nil))
	value := strfmt.RGBColor("foo")
	assert.Equal(t, value, RGBColorValue(&value))
}

func TestPasswordValue(t *testing.T) {
	assert.Equal(t, strfmt.Password(""), PasswordValue(nil))
	value := strfmt.Password("foo")
	assert.Equal(t, value, PasswordValue(&value))
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 4.43 PM
root / root
0555
date.go
0.364 KB
25 Jan 2024 4.43 PM
root / root
0444
date_test.go
0.27 KB
25 Jan 2024 4.43 PM
root / root
0444
default.go
6.662 KB
25 Jan 2024 4.43 PM
root / root
0444
default_test.go
3.383 KB
25 Jan 2024 4.43 PM
root / root
0444
duration.go
0.408 KB
25 Jan 2024 4.43 PM
root / root
0444
duration_test.go
0.286 KB
25 Jan 2024 4.43 PM
root / root
0444
time.go
0.407 KB
25 Jan 2024 4.43 PM
root / root
0444
time_test.go
0.289 KB
25 Jan 2024 4.43 PM
root / root
0444
ulid.go
0.364 KB
25 Jan 2024 4.43 PM
root / root
0444
ulid_test.go
0.435 KB
25 Jan 2024 4.43 PM
root / root
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF