MCPcopy Create free account
hub / github.com/golang/appengine / TestAddWithEmptyPath

Function TestAddWithEmptyPath

v2/taskqueue/taskqueue_test.go:108–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func TestAddWithEmptyPath(t *testing.T) {
109 c := aetesting.FakeSingleContext(t, "taskqueue", "Add", func(req *pb.TaskQueueAddRequest, res *pb.TaskQueueAddResponse) error {
110 if got, want := string(req.Url), "/_ah/queue/a-queue"; got != want {
111 return fmt.Errorf("req.Url = %q; want %q", got, want)
112 }
113 return nil
114 })
115 if _, err := Add(c, &Task{}, "a-queue"); err != nil {
116 t.Fatalf("Add: %v", err)
117 }
118}
119
120func TestParseRequestHeaders(t *testing.T) {
121 tests := []struct {

Callers

nothing calls this directly

Calls 2

FakeSingleContextFunction · 0.92
AddFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…