(t *testing.T, srv *httptest.Server)
| 64 | } |
| 65 | |
| 66 | func newSlidesServiceFromServer(t *testing.T, srv *httptest.Server) *slides.Service { |
| 67 | t.Helper() |
| 68 | svc, err := slides.NewService(context.Background(), |
| 69 | option.WithoutAuthentication(), |
| 70 | option.WithHTTPClient(srv.Client()), |
| 71 | option.WithEndpoint(srv.URL+"/"), |
| 72 | ) |
| 73 | if err != nil { |
| 74 | t.Fatalf("slides.NewService: %v", err) |
| 75 | } |
| 76 | return svc |
| 77 | } |
| 78 | |
| 79 | func slidesPresentationWithTableCellText(rowIndex, columnIndex int, content string) *slides.Presentation { |
| 80 | rows := make([]*slides.TableRow, rowIndex+1) |
no outgoing calls
no test coverage detected