MCPcopy
hub / github.com/kubernetes/client-go / TestVerbs

Function TestVerbs

rest/request_test.go:1637–1651  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1635}
1636
1637func TestVerbs(t *testing.T) {
1638 c := testRESTClient(t, nil)
1639 if r := c.Post(); r.verb != "POST" {
1640 t.Errorf("Post verb is wrong")
1641 }
1642 if r := c.Put(); r.verb != "PUT" {
1643 t.Errorf("Put verb is wrong")
1644 }
1645 if r := c.Get(); r.verb != "GET" {
1646 t.Errorf("Get verb is wrong")
1647 }
1648 if r := c.Delete(); r.verb != "DELETE" {
1649 t.Errorf("Delete verb is wrong")
1650 }
1651}
1652
1653func TestAbsPath(t *testing.T) {
1654 for i, tc := range []struct {

Callers

nothing calls this directly

Calls 6

testRESTClientFunction · 0.85
PostMethod · 0.65
ErrorfMethod · 0.65
PutMethod · 0.65
GetMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected