(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func 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 | |
| 120 | func TestParseRequestHeaders(t *testing.T) { |
| 121 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…