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

Function TestShortenName

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

Source from the content-addressed store, hash-verified

99}
100
101func TestShortenName(t *testing.T) {
102 assert.Equal(t, "@", shortenName("example.com.", "example.com."))
103 assert.Equal(t, "a", shortenName("a.example.com.", "example.com."))
104 assert.Equal(t, "a.", shortenName("a.", "example.com."))
105 assert.Equal(t, "a.b", shortenName("a.b.example.com.", "example.com."))
106 assert.Equal(t, "fineexample.com.", shortenName("fineexample.com.", "example.com."))
107}
108
109func TestLoadAWSProfileSettings(t *testing.T) {
110 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

shortenNameFunction · 0.85

Tested by

no test coverage detected