MCPcopy
hub / github.com/digitalocean/doctl / TestCDNsCreate_ZeroFail

Function TestCDNsCreate_ZeroFail

commands/cdns_test.go:166–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestCDNsCreate_ZeroFail(t *testing.T) {
167 withTestClient(t, func(config *CmdConfig, tm *tcMocks) {
168 config.Args = append(config.Args, cdnOrigin)
169 config.Doit.Set(config.NS, doctl.ArgCDNTTL, 0)
170
171 err := RunCDNCreate(config)
172 assert.Error(t, err)
173 })
174}
175
176func TestCDNsUpdateTTL(t *testing.T) {
177 withTestClient(t, func(config *CmdConfig, tm *tcMocks) {

Callers

nothing calls this directly

Calls 4

withTestClientFunction · 0.85
RunCDNCreateFunction · 0.85
SetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected