MCPcopy Create free account
hub / github.com/barnybug/cli53 / TestIsZoneId

Function TestIsZoneId

util_test.go:82–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func TestIsZoneId(t *testing.T) {
83 assert.True(t, isZoneId("Z1DXU7RZRUQ"))
84 assert.True(t, isZoneId("Z1DXU7RZRUQP"))
85 assert.True(t, isZoneId("Z1DXU7RZRUQPI"))
86 assert.True(t, isZoneId("Z1DXU7RZRUQPIP"))
87 assert.True(t, isZoneId("/hostedzone/Z1DXU7RZRUQPIP"))
88 assert.False(t, isZoneId("example.com"))
89 assert.False(t, isZoneId("example.com."))
90 assert.False(t, isZoneId("0.1.10.in-addr.arpa."))
91}
92
93func TestQualifyName(t *testing.T) {
94 assert.Equal(t, "example.com.", qualifyName("", "example.com."))

Callers

nothing calls this directly

Calls 1

isZoneIdFunction · 0.85

Tested by

no test coverage detected