Documentation
¶
Index ¶
- type MockTaskPgRepo
- func (_m *MockTaskPgRepo) AddStatementImg(ctx context.Context, taskId string, img srvc.StatementImage) error
- func (_m *MockTaskPgRepo) CreateTask(ctx context.Context, task srvc.Task) error
- func (_m *MockTaskPgRepo) DeleteStatementImg(ctx context.Context, taskId string, filename string) error
- func (_m *MockTaskPgRepo) DeleteTask(ctx context.Context, shortId string) error
- func (_m *MockTaskPgRepo) EXPECT() *MockTaskPgRepo_Expecter
- func (_m *MockTaskPgRepo) Exists(ctx context.Context, shortId string) (bool, error)
- func (_m *MockTaskPgRepo) GetTask(ctx context.Context, shortId string) (srvc.Task, error)
- func (_m *MockTaskPgRepo) GetTaskPreview(ctx context.Context, shortId string) (srvc.TaskPreview, error)
- func (_m *MockTaskPgRepo) ListTaskPreviews(ctx context.Context, limit int, offset int) ([]srvc.TaskPreview, error)
- func (_m *MockTaskPgRepo) ListTasks(ctx context.Context, limit int, offset int) ([]srvc.Task, error)
- func (_m *MockTaskPgRepo) ResolveNames(ctx context.Context, shortIds []string) ([]string, error)
- func (_m *MockTaskPgRepo) SearchTasksByName(ctx context.Context, name string) ([]string, error)
- func (_m *MockTaskPgRepo) UpdateIllustrationImg(ctx context.Context, taskId string, img srvc.IllustrationImage) error
- func (_m *MockTaskPgRepo) UpdateStatement(ctx context.Context, taskId string, statement srvc.MarkdownStatement) error
- type MockTaskPgRepo_AddStatementImg_Call
- func (_c *MockTaskPgRepo_AddStatementImg_Call) Return(_a0 error) *MockTaskPgRepo_AddStatementImg_Call
- func (_c *MockTaskPgRepo_AddStatementImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.StatementImage)) *MockTaskPgRepo_AddStatementImg_Call
- func (_c *MockTaskPgRepo_AddStatementImg_Call) RunAndReturn(run func(context.Context, string, srvc.StatementImage) error) *MockTaskPgRepo_AddStatementImg_Call
- type MockTaskPgRepo_CreateTask_Call
- func (_c *MockTaskPgRepo_CreateTask_Call) Return(_a0 error) *MockTaskPgRepo_CreateTask_Call
- func (_c *MockTaskPgRepo_CreateTask_Call) Run(run func(ctx context.Context, task srvc.Task)) *MockTaskPgRepo_CreateTask_Call
- func (_c *MockTaskPgRepo_CreateTask_Call) RunAndReturn(run func(context.Context, srvc.Task) error) *MockTaskPgRepo_CreateTask_Call
- type MockTaskPgRepo_DeleteStatementImg_Call
- func (_c *MockTaskPgRepo_DeleteStatementImg_Call) Return(_a0 error) *MockTaskPgRepo_DeleteStatementImg_Call
- func (_c *MockTaskPgRepo_DeleteStatementImg_Call) Run(run func(ctx context.Context, taskId string, filename string)) *MockTaskPgRepo_DeleteStatementImg_Call
- func (_c *MockTaskPgRepo_DeleteStatementImg_Call) RunAndReturn(run func(context.Context, string, string) error) *MockTaskPgRepo_DeleteStatementImg_Call
- type MockTaskPgRepo_DeleteTask_Call
- func (_c *MockTaskPgRepo_DeleteTask_Call) Return(_a0 error) *MockTaskPgRepo_DeleteTask_Call
- func (_c *MockTaskPgRepo_DeleteTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_DeleteTask_Call
- func (_c *MockTaskPgRepo_DeleteTask_Call) RunAndReturn(run func(context.Context, string) error) *MockTaskPgRepo_DeleteTask_Call
- type MockTaskPgRepo_Exists_Call
- func (_c *MockTaskPgRepo_Exists_Call) Return(_a0 bool, _a1 error) *MockTaskPgRepo_Exists_Call
- func (_c *MockTaskPgRepo_Exists_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_Exists_Call
- func (_c *MockTaskPgRepo_Exists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockTaskPgRepo_Exists_Call
- type MockTaskPgRepo_Expecter
- func (_e *MockTaskPgRepo_Expecter) AddStatementImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskPgRepo_AddStatementImg_Call
- func (_e *MockTaskPgRepo_Expecter) CreateTask(ctx interface{}, task interface{}) *MockTaskPgRepo_CreateTask_Call
- func (_e *MockTaskPgRepo_Expecter) DeleteStatementImg(ctx interface{}, taskId interface{}, filename interface{}) *MockTaskPgRepo_DeleteStatementImg_Call
- func (_e *MockTaskPgRepo_Expecter) DeleteTask(ctx interface{}, shortId interface{}) *MockTaskPgRepo_DeleteTask_Call
- func (_e *MockTaskPgRepo_Expecter) Exists(ctx interface{}, shortId interface{}) *MockTaskPgRepo_Exists_Call
- func (_e *MockTaskPgRepo_Expecter) GetTask(ctx interface{}, shortId interface{}) *MockTaskPgRepo_GetTask_Call
- func (_e *MockTaskPgRepo_Expecter) GetTaskPreview(ctx interface{}, shortId interface{}) *MockTaskPgRepo_GetTaskPreview_Call
- func (_e *MockTaskPgRepo_Expecter) ListTaskPreviews(ctx interface{}, limit interface{}, offset interface{}) *MockTaskPgRepo_ListTaskPreviews_Call
- func (_e *MockTaskPgRepo_Expecter) ListTasks(ctx interface{}, limit interface{}, offset interface{}) *MockTaskPgRepo_ListTasks_Call
- func (_e *MockTaskPgRepo_Expecter) ResolveNames(ctx interface{}, shortIds interface{}) *MockTaskPgRepo_ResolveNames_Call
- func (_e *MockTaskPgRepo_Expecter) SearchTasksByName(ctx interface{}, name interface{}) *MockTaskPgRepo_SearchTasksByName_Call
- func (_e *MockTaskPgRepo_Expecter) UpdateIllustrationImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskPgRepo_UpdateIllustrationImg_Call
- func (_e *MockTaskPgRepo_Expecter) UpdateStatement(ctx interface{}, taskId interface{}, statement interface{}) *MockTaskPgRepo_UpdateStatement_Call
- type MockTaskPgRepo_GetTaskPreview_Call
- func (_c *MockTaskPgRepo_GetTaskPreview_Call) Return(_a0 srvc.TaskPreview, _a1 error) *MockTaskPgRepo_GetTaskPreview_Call
- func (_c *MockTaskPgRepo_GetTaskPreview_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_GetTaskPreview_Call
- func (_c *MockTaskPgRepo_GetTaskPreview_Call) RunAndReturn(run func(context.Context, string) (srvc.TaskPreview, error)) *MockTaskPgRepo_GetTaskPreview_Call
- type MockTaskPgRepo_GetTask_Call
- func (_c *MockTaskPgRepo_GetTask_Call) Return(_a0 srvc.Task, _a1 error) *MockTaskPgRepo_GetTask_Call
- func (_c *MockTaskPgRepo_GetTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_GetTask_Call
- func (_c *MockTaskPgRepo_GetTask_Call) RunAndReturn(run func(context.Context, string) (srvc.Task, error)) *MockTaskPgRepo_GetTask_Call
- type MockTaskPgRepo_ListTaskPreviews_Call
- func (_c *MockTaskPgRepo_ListTaskPreviews_Call) Return(_a0 []srvc.TaskPreview, _a1 error) *MockTaskPgRepo_ListTaskPreviews_Call
- func (_c *MockTaskPgRepo_ListTaskPreviews_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockTaskPgRepo_ListTaskPreviews_Call
- func (_c *MockTaskPgRepo_ListTaskPreviews_Call) RunAndReturn(run func(context.Context, int, int) ([]srvc.TaskPreview, error)) *MockTaskPgRepo_ListTaskPreviews_Call
- type MockTaskPgRepo_ListTasks_Call
- func (_c *MockTaskPgRepo_ListTasks_Call) Return(_a0 []srvc.Task, _a1 error) *MockTaskPgRepo_ListTasks_Call
- func (_c *MockTaskPgRepo_ListTasks_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockTaskPgRepo_ListTasks_Call
- func (_c *MockTaskPgRepo_ListTasks_Call) RunAndReturn(run func(context.Context, int, int) ([]srvc.Task, error)) *MockTaskPgRepo_ListTasks_Call
- type MockTaskPgRepo_ResolveNames_Call
- func (_c *MockTaskPgRepo_ResolveNames_Call) Return(_a0 []string, _a1 error) *MockTaskPgRepo_ResolveNames_Call
- func (_c *MockTaskPgRepo_ResolveNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskPgRepo_ResolveNames_Call
- func (_c *MockTaskPgRepo_ResolveNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, error)) *MockTaskPgRepo_ResolveNames_Call
- type MockTaskPgRepo_SearchTasksByName_Call
- func (_c *MockTaskPgRepo_SearchTasksByName_Call) Return(_a0 []string, _a1 error) *MockTaskPgRepo_SearchTasksByName_Call
- func (_c *MockTaskPgRepo_SearchTasksByName_Call) Run(run func(ctx context.Context, name string)) *MockTaskPgRepo_SearchTasksByName_Call
- func (_c *MockTaskPgRepo_SearchTasksByName_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *MockTaskPgRepo_SearchTasksByName_Call
- type MockTaskPgRepo_UpdateIllustrationImg_Call
- func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) Return(_a0 error) *MockTaskPgRepo_UpdateIllustrationImg_Call
- func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.IllustrationImage)) *MockTaskPgRepo_UpdateIllustrationImg_Call
- func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) RunAndReturn(run func(context.Context, string, srvc.IllustrationImage) error) *MockTaskPgRepo_UpdateIllustrationImg_Call
- type MockTaskPgRepo_UpdateStatement_Call
- func (_c *MockTaskPgRepo_UpdateStatement_Call) Return(_a0 error) *MockTaskPgRepo_UpdateStatement_Call
- func (_c *MockTaskPgRepo_UpdateStatement_Call) Run(run func(ctx context.Context, taskId string, statement srvc.MarkdownStatement)) *MockTaskPgRepo_UpdateStatement_Call
- func (_c *MockTaskPgRepo_UpdateStatement_Call) RunAndReturn(run func(context.Context, string, srvc.MarkdownStatement) error) *MockTaskPgRepo_UpdateStatement_Call
- type MockTaskSrvcClient
- func (_m *MockTaskSrvcClient) CreateTask(ctx context.Context, task srvc.Task) *srvcerror.Error
- func (_m *MockTaskSrvcClient) DeleteIllustrationImg(ctx context.Context, taskId string) *srvcerror.Error
- func (_m *MockTaskSrvcClient) DeleteStatementImage(ctx context.Context, taskId string, filename string) *srvcerror.Error
- func (_m *MockTaskSrvcClient) DeleteTask(ctx context.Context, shortId string) *srvcerror.Error
- func (_m *MockTaskSrvcClient) DownloadOgFileArchive(ctx context.Context, s3Key string) ([]byte, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) DownloadTestFile(ctx context.Context, testFileSha256 string) ([]byte, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) EXPECT() *MockTaskSrvcClient_Expecter
- func (_m *MockTaskSrvcClient) ExportTaskAsZip(ctx context.Context, taskId string) ([]byte, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetHttpUrlForIllustrImg(ctx context.Context, illstrImgS3Key string) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetHttpUrlForStatementImage(ctx context.Context, statementImageS3Key string) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetTask(ctx context.Context, shortId string) (srvc.Task, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetTaskFullNames(ctx context.Context, shortIds []string) ([]string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetTaskPreview(ctx context.Context, shortId string) (srvc.TaskPreview, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) GetTestDownlUrl(ctx context.Context, testFileSha256 string) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) ImportTaskFromZip(ctx context.Context, zipBytes []byte, overrideId string) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) ListTaskPreviews(ctx context.Context) ([]srvc.TaskPreview, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) ListTasks(ctx context.Context) ([]srvc.Task, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) ResolveNames(ctx context.Context, shortIds []string) ([]string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) SearchTasksByName(ctx context.Context, name string) ([]string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) UpdateIllustrationImg(ctx context.Context, taskId string, img srvc.IllustrationImage) *srvcerror.Error
- func (_m *MockTaskSrvcClient) UpdateStatementMd(ctx context.Context, taskId string, statement srvc.MarkdownStatement) *srvcerror.Error
- func (_m *MockTaskSrvcClient) UploadIllustrationImg(ctx context.Context, mimeType string, body []byte) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) UploadOgFileArchive(ctx context.Context, zipBytes []byte) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) UploadStatementImage(ctx context.Context, taskId string, filename string, mimeType string, ...) (string, *srvcerror.Error)
- func (_m *MockTaskSrvcClient) UploadTestFile(ctx context.Context, body []byte) *srvcerror.Error
- type MockTaskSrvcClient_CreateTask_Call
- func (_c *MockTaskSrvcClient_CreateTask_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_CreateTask_Call
- func (_c *MockTaskSrvcClient_CreateTask_Call) Run(run func(ctx context.Context, task srvc.Task)) *MockTaskSrvcClient_CreateTask_Call
- func (_c *MockTaskSrvcClient_CreateTask_Call) RunAndReturn(run func(context.Context, srvc.Task) *srvcerror.Error) *MockTaskSrvcClient_CreateTask_Call
- type MockTaskSrvcClient_DeleteIllustrationImg_Call
- func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteIllustrationImg_Call
- func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) Run(run func(ctx context.Context, taskId string)) *MockTaskSrvcClient_DeleteIllustrationImg_Call
- func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) RunAndReturn(run func(context.Context, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteIllustrationImg_Call
- type MockTaskSrvcClient_DeleteStatementImage_Call
- func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteStatementImage_Call
- func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) Run(run func(ctx context.Context, taskId string, filename string)) *MockTaskSrvcClient_DeleteStatementImage_Call
- func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) RunAndReturn(run func(context.Context, string, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteStatementImage_Call
- type MockTaskSrvcClient_DeleteTask_Call
- func (_c *MockTaskSrvcClient_DeleteTask_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteTask_Call
- func (_c *MockTaskSrvcClient_DeleteTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_DeleteTask_Call
- func (_c *MockTaskSrvcClient_DeleteTask_Call) RunAndReturn(run func(context.Context, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteTask_Call
- type MockTaskSrvcClient_DownloadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_DownloadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) Run(run func(ctx context.Context, s3Key string)) *MockTaskSrvcClient_DownloadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_DownloadOgFileArchive_Call
- type MockTaskSrvcClient_DownloadTestFile_Call
- func (_c *MockTaskSrvcClient_DownloadTestFile_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_DownloadTestFile_Call
- func (_c *MockTaskSrvcClient_DownloadTestFile_Call) Run(run func(ctx context.Context, testFileSha256 string)) *MockTaskSrvcClient_DownloadTestFile_Call
- func (_c *MockTaskSrvcClient_DownloadTestFile_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_DownloadTestFile_Call
- type MockTaskSrvcClient_Expecter
- func (_e *MockTaskSrvcClient_Expecter) CreateTask(ctx interface{}, task interface{}) *MockTaskSrvcClient_CreateTask_Call
- func (_e *MockTaskSrvcClient_Expecter) DeleteIllustrationImg(ctx interface{}, taskId interface{}) *MockTaskSrvcClient_DeleteIllustrationImg_Call
- func (_e *MockTaskSrvcClient_Expecter) DeleteStatementImage(ctx interface{}, taskId interface{}, filename interface{}) *MockTaskSrvcClient_DeleteStatementImage_Call
- func (_e *MockTaskSrvcClient_Expecter) DeleteTask(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_DeleteTask_Call
- func (_e *MockTaskSrvcClient_Expecter) DownloadOgFileArchive(ctx interface{}, s3Key interface{}) *MockTaskSrvcClient_DownloadOgFileArchive_Call
- func (_e *MockTaskSrvcClient_Expecter) DownloadTestFile(ctx interface{}, testFileSha256 interface{}) *MockTaskSrvcClient_DownloadTestFile_Call
- func (_e *MockTaskSrvcClient_Expecter) ExportTaskAsZip(ctx interface{}, taskId interface{}) *MockTaskSrvcClient_ExportTaskAsZip_Call
- func (_e *MockTaskSrvcClient_Expecter) GetHttpUrlForIllustrImg(ctx interface{}, illstrImgS3Key interface{}) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
- func (_e *MockTaskSrvcClient_Expecter) GetHttpUrlForStatementImage(ctx interface{}, statementImageS3Key interface{}) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
- func (_e *MockTaskSrvcClient_Expecter) GetTask(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_GetTask_Call
- func (_e *MockTaskSrvcClient_Expecter) GetTaskFullNames(ctx interface{}, shortIds interface{}) *MockTaskSrvcClient_GetTaskFullNames_Call
- func (_e *MockTaskSrvcClient_Expecter) GetTaskPreview(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_GetTaskPreview_Call
- func (_e *MockTaskSrvcClient_Expecter) GetTestDownlUrl(ctx interface{}, testFileSha256 interface{}) *MockTaskSrvcClient_GetTestDownlUrl_Call
- func (_e *MockTaskSrvcClient_Expecter) ImportTaskFromZip(ctx interface{}, zipBytes interface{}, overrideId interface{}) *MockTaskSrvcClient_ImportTaskFromZip_Call
- func (_e *MockTaskSrvcClient_Expecter) ListTaskPreviews(ctx interface{}) *MockTaskSrvcClient_ListTaskPreviews_Call
- func (_e *MockTaskSrvcClient_Expecter) ListTasks(ctx interface{}) *MockTaskSrvcClient_ListTasks_Call
- func (_e *MockTaskSrvcClient_Expecter) ResolveNames(ctx interface{}, shortIds interface{}) *MockTaskSrvcClient_ResolveNames_Call
- func (_e *MockTaskSrvcClient_Expecter) SearchTasksByName(ctx interface{}, name interface{}) *MockTaskSrvcClient_SearchTasksByName_Call
- func (_e *MockTaskSrvcClient_Expecter) UpdateIllustrationImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskSrvcClient_UpdateIllustrationImg_Call
- func (_e *MockTaskSrvcClient_Expecter) UpdateStatementMd(ctx interface{}, taskId interface{}, statement interface{}) *MockTaskSrvcClient_UpdateStatementMd_Call
- func (_e *MockTaskSrvcClient_Expecter) UploadIllustrationImg(ctx interface{}, mimeType interface{}, body interface{}) *MockTaskSrvcClient_UploadIllustrationImg_Call
- func (_e *MockTaskSrvcClient_Expecter) UploadOgFileArchive(ctx interface{}, zipBytes interface{}) *MockTaskSrvcClient_UploadOgFileArchive_Call
- func (_e *MockTaskSrvcClient_Expecter) UploadStatementImage(ctx interface{}, taskId interface{}, filename interface{}, ...) *MockTaskSrvcClient_UploadStatementImage_Call
- func (_e *MockTaskSrvcClient_Expecter) UploadTestFile(ctx interface{}, body interface{}) *MockTaskSrvcClient_UploadTestFile_Call
- type MockTaskSrvcClient_ExportTaskAsZip_Call
- func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_ExportTaskAsZip_Call
- func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) Run(run func(ctx context.Context, taskId string)) *MockTaskSrvcClient_ExportTaskAsZip_Call
- func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_ExportTaskAsZip_Call
- type MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Run(run func(ctx context.Context, illstrImgS3Key string)) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
- type MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Run(run func(ctx context.Context, statementImageS3Key string)) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
- func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
- type MockTaskSrvcClient_GetTaskFullNames_Call
- func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTaskFullNames_Call
- func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskSrvcClient_GetTaskFullNames_Call
- func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_GetTaskFullNames_Call
- type MockTaskSrvcClient_GetTaskPreview_Call
- func (_c *MockTaskSrvcClient_GetTaskPreview_Call) Return(_a0 srvc.TaskPreview, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTaskPreview_Call
- func (_c *MockTaskSrvcClient_GetTaskPreview_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_GetTaskPreview_Call
- func (_c *MockTaskSrvcClient_GetTaskPreview_Call) RunAndReturn(run func(context.Context, string) (srvc.TaskPreview, *srvcerror.Error)) *MockTaskSrvcClient_GetTaskPreview_Call
- type MockTaskSrvcClient_GetTask_Call
- func (_c *MockTaskSrvcClient_GetTask_Call) Return(_a0 srvc.Task, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTask_Call
- func (_c *MockTaskSrvcClient_GetTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_GetTask_Call
- func (_c *MockTaskSrvcClient_GetTask_Call) RunAndReturn(run func(context.Context, string) (srvc.Task, *srvcerror.Error)) *MockTaskSrvcClient_GetTask_Call
- type MockTaskSrvcClient_GetTestDownlUrl_Call
- func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTestDownlUrl_Call
- func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) Run(run func(ctx context.Context, testFileSha256 string)) *MockTaskSrvcClient_GetTestDownlUrl_Call
- func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetTestDownlUrl_Call
- type MockTaskSrvcClient_ImportTaskFromZip_Call
- func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_ImportTaskFromZip_Call
- func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) Run(run func(ctx context.Context, zipBytes []byte, overrideId string)) *MockTaskSrvcClient_ImportTaskFromZip_Call
- func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) RunAndReturn(run func(context.Context, []byte, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_ImportTaskFromZip_Call
- type MockTaskSrvcClient_ListTaskPreviews_Call
- func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) Return(_a0 []srvc.TaskPreview, _a1 *srvcerror.Error) *MockTaskSrvcClient_ListTaskPreviews_Call
- func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) Run(run func(ctx context.Context)) *MockTaskSrvcClient_ListTaskPreviews_Call
- func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) RunAndReturn(run func(context.Context) ([]srvc.TaskPreview, *srvcerror.Error)) *MockTaskSrvcClient_ListTaskPreviews_Call
- type MockTaskSrvcClient_ListTasks_Call
- func (_c *MockTaskSrvcClient_ListTasks_Call) Return(_a0 []srvc.Task, _a1 *srvcerror.Error) *MockTaskSrvcClient_ListTasks_Call
- func (_c *MockTaskSrvcClient_ListTasks_Call) Run(run func(ctx context.Context)) *MockTaskSrvcClient_ListTasks_Call
- func (_c *MockTaskSrvcClient_ListTasks_Call) RunAndReturn(run func(context.Context) ([]srvc.Task, *srvcerror.Error)) *MockTaskSrvcClient_ListTasks_Call
- type MockTaskSrvcClient_ResolveNames_Call
- func (_c *MockTaskSrvcClient_ResolveNames_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_ResolveNames_Call
- func (_c *MockTaskSrvcClient_ResolveNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskSrvcClient_ResolveNames_Call
- func (_c *MockTaskSrvcClient_ResolveNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_ResolveNames_Call
- type MockTaskSrvcClient_SearchTasksByName_Call
- func (_c *MockTaskSrvcClient_SearchTasksByName_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_SearchTasksByName_Call
- func (_c *MockTaskSrvcClient_SearchTasksByName_Call) Run(run func(ctx context.Context, name string)) *MockTaskSrvcClient_SearchTasksByName_Call
- func (_c *MockTaskSrvcClient_SearchTasksByName_Call) RunAndReturn(run func(context.Context, string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_SearchTasksByName_Call
- type MockTaskSrvcClient_UpdateIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UpdateIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.IllustrationImage)) *MockTaskSrvcClient_UpdateIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) RunAndReturn(run func(context.Context, string, srvc.IllustrationImage) *srvcerror.Error) *MockTaskSrvcClient_UpdateIllustrationImg_Call
- type MockTaskSrvcClient_UpdateStatementMd_Call
- func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UpdateStatementMd_Call
- func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) Run(run func(ctx context.Context, taskId string, statement srvc.MarkdownStatement)) *MockTaskSrvcClient_UpdateStatementMd_Call
- func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) RunAndReturn(run func(context.Context, string, srvc.MarkdownStatement) *srvcerror.Error) *MockTaskSrvcClient_UpdateStatementMd_Call
- type MockTaskSrvcClient_UploadIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) Run(run func(ctx context.Context, mimeType string, body []byte)) *MockTaskSrvcClient_UploadIllustrationImg_Call
- func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) RunAndReturn(run func(context.Context, string, []byte) (string, *srvcerror.Error)) *MockTaskSrvcClient_UploadIllustrationImg_Call
- type MockTaskSrvcClient_UploadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) Run(run func(ctx context.Context, zipBytes []byte)) *MockTaskSrvcClient_UploadOgFileArchive_Call
- func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) RunAndReturn(run func(context.Context, []byte) (string, *srvcerror.Error)) *MockTaskSrvcClient_UploadOgFileArchive_Call
- type MockTaskSrvcClient_UploadStatementImage_Call
- func (_c *MockTaskSrvcClient_UploadStatementImage_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadStatementImage_Call
- func (_c *MockTaskSrvcClient_UploadStatementImage_Call) Run(...) *MockTaskSrvcClient_UploadStatementImage_Call
- func (_c *MockTaskSrvcClient_UploadStatementImage_Call) RunAndReturn(...) *MockTaskSrvcClient_UploadStatementImage_Call
- type MockTaskSrvcClient_UploadTestFile_Call
- func (_c *MockTaskSrvcClient_UploadTestFile_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UploadTestFile_Call
- func (_c *MockTaskSrvcClient_UploadTestFile_Call) Run(run func(ctx context.Context, body []byte)) *MockTaskSrvcClient_UploadTestFile_Call
- func (_c *MockTaskSrvcClient_UploadTestFile_Call) RunAndReturn(run func(context.Context, []byte) *srvcerror.Error) *MockTaskSrvcClient_UploadTestFile_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTaskPgRepo ¶
MockTaskPgRepo is an autogenerated mock type for the TaskPgRepo type
func NewMockTaskPgRepo ¶
func NewMockTaskPgRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockTaskPgRepo
NewMockTaskPgRepo creates a new instance of MockTaskPgRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTaskPgRepo) AddStatementImg ¶
func (_m *MockTaskPgRepo) AddStatementImg(ctx context.Context, taskId string, img srvc.StatementImage) error
AddStatementImg provides a mock function with given fields: ctx, taskId, img
func (*MockTaskPgRepo) CreateTask ¶
CreateTask provides a mock function with given fields: ctx, task
func (*MockTaskPgRepo) DeleteStatementImg ¶
func (_m *MockTaskPgRepo) DeleteStatementImg(ctx context.Context, taskId string, filename string) error
DeleteStatementImg provides a mock function with given fields: ctx, taskId, filename
func (*MockTaskPgRepo) DeleteTask ¶
func (_m *MockTaskPgRepo) DeleteTask(ctx context.Context, shortId string) error
DeleteTask provides a mock function with given fields: ctx, shortId
func (*MockTaskPgRepo) EXPECT ¶
func (_m *MockTaskPgRepo) EXPECT() *MockTaskPgRepo_Expecter
func (*MockTaskPgRepo) GetTaskPreview ¶
func (_m *MockTaskPgRepo) GetTaskPreview(ctx context.Context, shortId string) (srvc.TaskPreview, error)
GetTaskPreview provides a mock function with given fields: ctx, shortId
func (*MockTaskPgRepo) ListTaskPreviews ¶
func (_m *MockTaskPgRepo) ListTaskPreviews(ctx context.Context, limit int, offset int) ([]srvc.TaskPreview, error)
ListTaskPreviews provides a mock function with given fields: ctx, limit, offset
func (*MockTaskPgRepo) ListTasks ¶
func (_m *MockTaskPgRepo) ListTasks(ctx context.Context, limit int, offset int) ([]srvc.Task, error)
ListTasks provides a mock function with given fields: ctx, limit, offset
func (*MockTaskPgRepo) ResolveNames ¶
ResolveNames provides a mock function with given fields: ctx, shortIds
func (*MockTaskPgRepo) SearchTasksByName ¶
SearchTasksByName provides a mock function with given fields: ctx, name
func (*MockTaskPgRepo) UpdateIllustrationImg ¶
func (_m *MockTaskPgRepo) UpdateIllustrationImg(ctx context.Context, taskId string, img srvc.IllustrationImage) error
UpdateIllustrationImg provides a mock function with given fields: ctx, taskId, img
func (*MockTaskPgRepo) UpdateStatement ¶
func (_m *MockTaskPgRepo) UpdateStatement(ctx context.Context, taskId string, statement srvc.MarkdownStatement) error
UpdateStatement provides a mock function with given fields: ctx, taskId, statement
type MockTaskPgRepo_AddStatementImg_Call ¶
MockTaskPgRepo_AddStatementImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddStatementImg'
func (*MockTaskPgRepo_AddStatementImg_Call) Return ¶
func (_c *MockTaskPgRepo_AddStatementImg_Call) Return(_a0 error) *MockTaskPgRepo_AddStatementImg_Call
func (*MockTaskPgRepo_AddStatementImg_Call) Run ¶
func (_c *MockTaskPgRepo_AddStatementImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.StatementImage)) *MockTaskPgRepo_AddStatementImg_Call
func (*MockTaskPgRepo_AddStatementImg_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_AddStatementImg_Call) RunAndReturn(run func(context.Context, string, srvc.StatementImage) error) *MockTaskPgRepo_AddStatementImg_Call
type MockTaskPgRepo_CreateTask_Call ¶
MockTaskPgRepo_CreateTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTask'
func (*MockTaskPgRepo_CreateTask_Call) Return ¶
func (_c *MockTaskPgRepo_CreateTask_Call) Return(_a0 error) *MockTaskPgRepo_CreateTask_Call
func (*MockTaskPgRepo_CreateTask_Call) Run ¶
func (_c *MockTaskPgRepo_CreateTask_Call) Run(run func(ctx context.Context, task srvc.Task)) *MockTaskPgRepo_CreateTask_Call
func (*MockTaskPgRepo_CreateTask_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_CreateTask_Call) RunAndReturn(run func(context.Context, srvc.Task) error) *MockTaskPgRepo_CreateTask_Call
type MockTaskPgRepo_DeleteStatementImg_Call ¶
MockTaskPgRepo_DeleteStatementImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteStatementImg'
func (*MockTaskPgRepo_DeleteStatementImg_Call) Return ¶
func (_c *MockTaskPgRepo_DeleteStatementImg_Call) Return(_a0 error) *MockTaskPgRepo_DeleteStatementImg_Call
func (*MockTaskPgRepo_DeleteStatementImg_Call) Run ¶
func (_c *MockTaskPgRepo_DeleteStatementImg_Call) Run(run func(ctx context.Context, taskId string, filename string)) *MockTaskPgRepo_DeleteStatementImg_Call
func (*MockTaskPgRepo_DeleteStatementImg_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_DeleteStatementImg_Call) RunAndReturn(run func(context.Context, string, string) error) *MockTaskPgRepo_DeleteStatementImg_Call
type MockTaskPgRepo_DeleteTask_Call ¶
MockTaskPgRepo_DeleteTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTask'
func (*MockTaskPgRepo_DeleteTask_Call) Return ¶
func (_c *MockTaskPgRepo_DeleteTask_Call) Return(_a0 error) *MockTaskPgRepo_DeleteTask_Call
func (*MockTaskPgRepo_DeleteTask_Call) Run ¶
func (_c *MockTaskPgRepo_DeleteTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_DeleteTask_Call
func (*MockTaskPgRepo_DeleteTask_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_DeleteTask_Call) RunAndReturn(run func(context.Context, string) error) *MockTaskPgRepo_DeleteTask_Call
type MockTaskPgRepo_Exists_Call ¶
MockTaskPgRepo_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*MockTaskPgRepo_Exists_Call) Return ¶
func (_c *MockTaskPgRepo_Exists_Call) Return(_a0 bool, _a1 error) *MockTaskPgRepo_Exists_Call
func (*MockTaskPgRepo_Exists_Call) Run ¶
func (_c *MockTaskPgRepo_Exists_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_Exists_Call
func (*MockTaskPgRepo_Exists_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_Exists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockTaskPgRepo_Exists_Call
type MockTaskPgRepo_Expecter ¶
type MockTaskPgRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTaskPgRepo_Expecter) AddStatementImg ¶
func (_e *MockTaskPgRepo_Expecter) AddStatementImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskPgRepo_AddStatementImg_Call
AddStatementImg is a helper method to define mock.On call
- ctx context.Context
- taskId string
- img srvc.StatementImage
func (*MockTaskPgRepo_Expecter) CreateTask ¶
func (_e *MockTaskPgRepo_Expecter) CreateTask(ctx interface{}, task interface{}) *MockTaskPgRepo_CreateTask_Call
CreateTask is a helper method to define mock.On call
- ctx context.Context
- task srvc.Task
func (*MockTaskPgRepo_Expecter) DeleteStatementImg ¶
func (_e *MockTaskPgRepo_Expecter) DeleteStatementImg(ctx interface{}, taskId interface{}, filename interface{}) *MockTaskPgRepo_DeleteStatementImg_Call
DeleteStatementImg is a helper method to define mock.On call
- ctx context.Context
- taskId string
- filename string
func (*MockTaskPgRepo_Expecter) DeleteTask ¶
func (_e *MockTaskPgRepo_Expecter) DeleteTask(ctx interface{}, shortId interface{}) *MockTaskPgRepo_DeleteTask_Call
DeleteTask is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskPgRepo_Expecter) Exists ¶
func (_e *MockTaskPgRepo_Expecter) Exists(ctx interface{}, shortId interface{}) *MockTaskPgRepo_Exists_Call
Exists is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskPgRepo_Expecter) GetTask ¶
func (_e *MockTaskPgRepo_Expecter) GetTask(ctx interface{}, shortId interface{}) *MockTaskPgRepo_GetTask_Call
GetTask is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskPgRepo_Expecter) GetTaskPreview ¶
func (_e *MockTaskPgRepo_Expecter) GetTaskPreview(ctx interface{}, shortId interface{}) *MockTaskPgRepo_GetTaskPreview_Call
GetTaskPreview is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskPgRepo_Expecter) ListTaskPreviews ¶
func (_e *MockTaskPgRepo_Expecter) ListTaskPreviews(ctx interface{}, limit interface{}, offset interface{}) *MockTaskPgRepo_ListTaskPreviews_Call
ListTaskPreviews is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockTaskPgRepo_Expecter) ListTasks ¶
func (_e *MockTaskPgRepo_Expecter) ListTasks(ctx interface{}, limit interface{}, offset interface{}) *MockTaskPgRepo_ListTasks_Call
ListTasks is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockTaskPgRepo_Expecter) ResolveNames ¶
func (_e *MockTaskPgRepo_Expecter) ResolveNames(ctx interface{}, shortIds interface{}) *MockTaskPgRepo_ResolveNames_Call
ResolveNames is a helper method to define mock.On call
- ctx context.Context
- shortIds []string
func (*MockTaskPgRepo_Expecter) SearchTasksByName ¶
func (_e *MockTaskPgRepo_Expecter) SearchTasksByName(ctx interface{}, name interface{}) *MockTaskPgRepo_SearchTasksByName_Call
SearchTasksByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockTaskPgRepo_Expecter) UpdateIllustrationImg ¶
func (_e *MockTaskPgRepo_Expecter) UpdateIllustrationImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskPgRepo_UpdateIllustrationImg_Call
UpdateIllustrationImg is a helper method to define mock.On call
- ctx context.Context
- taskId string
- img srvc.IllustrationImage
func (*MockTaskPgRepo_Expecter) UpdateStatement ¶
func (_e *MockTaskPgRepo_Expecter) UpdateStatement(ctx interface{}, taskId interface{}, statement interface{}) *MockTaskPgRepo_UpdateStatement_Call
UpdateStatement is a helper method to define mock.On call
- ctx context.Context
- taskId string
- statement srvc.MarkdownStatement
type MockTaskPgRepo_GetTaskPreview_Call ¶
MockTaskPgRepo_GetTaskPreview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTaskPreview'
func (*MockTaskPgRepo_GetTaskPreview_Call) Return ¶
func (_c *MockTaskPgRepo_GetTaskPreview_Call) Return(_a0 srvc.TaskPreview, _a1 error) *MockTaskPgRepo_GetTaskPreview_Call
func (*MockTaskPgRepo_GetTaskPreview_Call) Run ¶
func (_c *MockTaskPgRepo_GetTaskPreview_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_GetTaskPreview_Call
func (*MockTaskPgRepo_GetTaskPreview_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_GetTaskPreview_Call) RunAndReturn(run func(context.Context, string) (srvc.TaskPreview, error)) *MockTaskPgRepo_GetTaskPreview_Call
type MockTaskPgRepo_GetTask_Call ¶
MockTaskPgRepo_GetTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTask'
func (*MockTaskPgRepo_GetTask_Call) Return ¶
func (_c *MockTaskPgRepo_GetTask_Call) Return(_a0 srvc.Task, _a1 error) *MockTaskPgRepo_GetTask_Call
func (*MockTaskPgRepo_GetTask_Call) Run ¶
func (_c *MockTaskPgRepo_GetTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskPgRepo_GetTask_Call
func (*MockTaskPgRepo_GetTask_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_GetTask_Call) RunAndReturn(run func(context.Context, string) (srvc.Task, error)) *MockTaskPgRepo_GetTask_Call
type MockTaskPgRepo_ListTaskPreviews_Call ¶
MockTaskPgRepo_ListTaskPreviews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTaskPreviews'
func (*MockTaskPgRepo_ListTaskPreviews_Call) Return ¶
func (_c *MockTaskPgRepo_ListTaskPreviews_Call) Return(_a0 []srvc.TaskPreview, _a1 error) *MockTaskPgRepo_ListTaskPreviews_Call
func (*MockTaskPgRepo_ListTaskPreviews_Call) Run ¶
func (_c *MockTaskPgRepo_ListTaskPreviews_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockTaskPgRepo_ListTaskPreviews_Call
func (*MockTaskPgRepo_ListTaskPreviews_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_ListTaskPreviews_Call) RunAndReturn(run func(context.Context, int, int) ([]srvc.TaskPreview, error)) *MockTaskPgRepo_ListTaskPreviews_Call
type MockTaskPgRepo_ListTasks_Call ¶
MockTaskPgRepo_ListTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTasks'
func (*MockTaskPgRepo_ListTasks_Call) Return ¶
func (_c *MockTaskPgRepo_ListTasks_Call) Return(_a0 []srvc.Task, _a1 error) *MockTaskPgRepo_ListTasks_Call
func (*MockTaskPgRepo_ListTasks_Call) Run ¶
func (_c *MockTaskPgRepo_ListTasks_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockTaskPgRepo_ListTasks_Call
func (*MockTaskPgRepo_ListTasks_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_ListTasks_Call) RunAndReturn(run func(context.Context, int, int) ([]srvc.Task, error)) *MockTaskPgRepo_ListTasks_Call
type MockTaskPgRepo_ResolveNames_Call ¶
MockTaskPgRepo_ResolveNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveNames'
func (*MockTaskPgRepo_ResolveNames_Call) Return ¶
func (_c *MockTaskPgRepo_ResolveNames_Call) Return(_a0 []string, _a1 error) *MockTaskPgRepo_ResolveNames_Call
func (*MockTaskPgRepo_ResolveNames_Call) Run ¶
func (_c *MockTaskPgRepo_ResolveNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskPgRepo_ResolveNames_Call
func (*MockTaskPgRepo_ResolveNames_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_ResolveNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, error)) *MockTaskPgRepo_ResolveNames_Call
type MockTaskPgRepo_SearchTasksByName_Call ¶
MockTaskPgRepo_SearchTasksByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchTasksByName'
func (*MockTaskPgRepo_SearchTasksByName_Call) Return ¶
func (_c *MockTaskPgRepo_SearchTasksByName_Call) Return(_a0 []string, _a1 error) *MockTaskPgRepo_SearchTasksByName_Call
func (*MockTaskPgRepo_SearchTasksByName_Call) Run ¶
func (_c *MockTaskPgRepo_SearchTasksByName_Call) Run(run func(ctx context.Context, name string)) *MockTaskPgRepo_SearchTasksByName_Call
func (*MockTaskPgRepo_SearchTasksByName_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_SearchTasksByName_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *MockTaskPgRepo_SearchTasksByName_Call
type MockTaskPgRepo_UpdateIllustrationImg_Call ¶
MockTaskPgRepo_UpdateIllustrationImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIllustrationImg'
func (*MockTaskPgRepo_UpdateIllustrationImg_Call) Return ¶
func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) Return(_a0 error) *MockTaskPgRepo_UpdateIllustrationImg_Call
func (*MockTaskPgRepo_UpdateIllustrationImg_Call) Run ¶
func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.IllustrationImage)) *MockTaskPgRepo_UpdateIllustrationImg_Call
func (*MockTaskPgRepo_UpdateIllustrationImg_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_UpdateIllustrationImg_Call) RunAndReturn(run func(context.Context, string, srvc.IllustrationImage) error) *MockTaskPgRepo_UpdateIllustrationImg_Call
type MockTaskPgRepo_UpdateStatement_Call ¶
MockTaskPgRepo_UpdateStatement_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatement'
func (*MockTaskPgRepo_UpdateStatement_Call) Return ¶
func (_c *MockTaskPgRepo_UpdateStatement_Call) Return(_a0 error) *MockTaskPgRepo_UpdateStatement_Call
func (*MockTaskPgRepo_UpdateStatement_Call) Run ¶
func (_c *MockTaskPgRepo_UpdateStatement_Call) Run(run func(ctx context.Context, taskId string, statement srvc.MarkdownStatement)) *MockTaskPgRepo_UpdateStatement_Call
func (*MockTaskPgRepo_UpdateStatement_Call) RunAndReturn ¶
func (_c *MockTaskPgRepo_UpdateStatement_Call) RunAndReturn(run func(context.Context, string, srvc.MarkdownStatement) error) *MockTaskPgRepo_UpdateStatement_Call
type MockTaskSrvcClient ¶
MockTaskSrvcClient is an autogenerated mock type for the TaskSrvcClient type
func NewMockTaskSrvcClient ¶
func NewMockTaskSrvcClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockTaskSrvcClient
NewMockTaskSrvcClient creates a new instance of MockTaskSrvcClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTaskSrvcClient) CreateTask ¶
CreateTask provides a mock function with given fields: ctx, task
func (*MockTaskSrvcClient) DeleteIllustrationImg ¶
func (_m *MockTaskSrvcClient) DeleteIllustrationImg(ctx context.Context, taskId string) *srvcerror.Error
DeleteIllustrationImg provides a mock function with given fields: ctx, taskId
func (*MockTaskSrvcClient) DeleteStatementImage ¶
func (_m *MockTaskSrvcClient) DeleteStatementImage(ctx context.Context, taskId string, filename string) *srvcerror.Error
DeleteStatementImage provides a mock function with given fields: ctx, taskId, filename
func (*MockTaskSrvcClient) DeleteTask ¶
DeleteTask provides a mock function with given fields: ctx, shortId
func (*MockTaskSrvcClient) DownloadOgFileArchive ¶
func (_m *MockTaskSrvcClient) DownloadOgFileArchive(ctx context.Context, s3Key string) ([]byte, *srvcerror.Error)
DownloadOgFileArchive provides a mock function with given fields: ctx, s3Key
func (*MockTaskSrvcClient) DownloadTestFile ¶
func (_m *MockTaskSrvcClient) DownloadTestFile(ctx context.Context, testFileSha256 string) ([]byte, *srvcerror.Error)
DownloadTestFile provides a mock function with given fields: ctx, testFileSha256
func (*MockTaskSrvcClient) EXPECT ¶
func (_m *MockTaskSrvcClient) EXPECT() *MockTaskSrvcClient_Expecter
func (*MockTaskSrvcClient) ExportTaskAsZip ¶
func (_m *MockTaskSrvcClient) ExportTaskAsZip(ctx context.Context, taskId string) ([]byte, *srvcerror.Error)
ExportTaskAsZip provides a mock function with given fields: ctx, taskId
func (*MockTaskSrvcClient) GetHttpUrlForIllustrImg ¶
func (_m *MockTaskSrvcClient) GetHttpUrlForIllustrImg(ctx context.Context, illstrImgS3Key string) (string, *srvcerror.Error)
GetHttpUrlForIllustrImg provides a mock function with given fields: ctx, illstrImgS3Key
func (*MockTaskSrvcClient) GetHttpUrlForStatementImage ¶
func (_m *MockTaskSrvcClient) GetHttpUrlForStatementImage(ctx context.Context, statementImageS3Key string) (string, *srvcerror.Error)
GetHttpUrlForStatementImage provides a mock function with given fields: ctx, statementImageS3Key
func (*MockTaskSrvcClient) GetTask ¶
func (_m *MockTaskSrvcClient) GetTask(ctx context.Context, shortId string) (srvc.Task, *srvcerror.Error)
GetTask provides a mock function with given fields: ctx, shortId
func (*MockTaskSrvcClient) GetTaskFullNames ¶
func (_m *MockTaskSrvcClient) GetTaskFullNames(ctx context.Context, shortIds []string) ([]string, *srvcerror.Error)
GetTaskFullNames provides a mock function with given fields: ctx, shortIds
func (*MockTaskSrvcClient) GetTaskPreview ¶
func (_m *MockTaskSrvcClient) GetTaskPreview(ctx context.Context, shortId string) (srvc.TaskPreview, *srvcerror.Error)
GetTaskPreview provides a mock function with given fields: ctx, shortId
func (*MockTaskSrvcClient) GetTestDownlUrl ¶
func (_m *MockTaskSrvcClient) GetTestDownlUrl(ctx context.Context, testFileSha256 string) (string, *srvcerror.Error)
GetTestDownlUrl provides a mock function with given fields: ctx, testFileSha256
func (*MockTaskSrvcClient) ImportTaskFromZip ¶
func (_m *MockTaskSrvcClient) ImportTaskFromZip(ctx context.Context, zipBytes []byte, overrideId string) (string, *srvcerror.Error)
ImportTaskFromZip provides a mock function with given fields: ctx, zipBytes, overrideId
func (*MockTaskSrvcClient) ListTaskPreviews ¶
func (_m *MockTaskSrvcClient) ListTaskPreviews(ctx context.Context) ([]srvc.TaskPreview, *srvcerror.Error)
ListTaskPreviews provides a mock function with given fields: ctx
func (*MockTaskSrvcClient) ResolveNames ¶
func (_m *MockTaskSrvcClient) ResolveNames(ctx context.Context, shortIds []string) ([]string, *srvcerror.Error)
ResolveNames provides a mock function with given fields: ctx, shortIds
func (*MockTaskSrvcClient) SearchTasksByName ¶
func (_m *MockTaskSrvcClient) SearchTasksByName(ctx context.Context, name string) ([]string, *srvcerror.Error)
SearchTasksByName provides a mock function with given fields: ctx, name
func (*MockTaskSrvcClient) UpdateIllustrationImg ¶
func (_m *MockTaskSrvcClient) UpdateIllustrationImg(ctx context.Context, taskId string, img srvc.IllustrationImage) *srvcerror.Error
UpdateIllustrationImg provides a mock function with given fields: ctx, taskId, img
func (*MockTaskSrvcClient) UpdateStatementMd ¶
func (_m *MockTaskSrvcClient) UpdateStatementMd(ctx context.Context, taskId string, statement srvc.MarkdownStatement) *srvcerror.Error
UpdateStatementMd provides a mock function with given fields: ctx, taskId, statement
func (*MockTaskSrvcClient) UploadIllustrationImg ¶
func (_m *MockTaskSrvcClient) UploadIllustrationImg(ctx context.Context, mimeType string, body []byte) (string, *srvcerror.Error)
UploadIllustrationImg provides a mock function with given fields: ctx, mimeType, body
func (*MockTaskSrvcClient) UploadOgFileArchive ¶
func (_m *MockTaskSrvcClient) UploadOgFileArchive(ctx context.Context, zipBytes []byte) (string, *srvcerror.Error)
UploadOgFileArchive provides a mock function with given fields: ctx, zipBytes
func (*MockTaskSrvcClient) UploadStatementImage ¶
func (_m *MockTaskSrvcClient) UploadStatementImage(ctx context.Context, taskId string, filename string, mimeType string, body []byte) (string, *srvcerror.Error)
UploadStatementImage provides a mock function with given fields: ctx, taskId, filename, mimeType, body
func (*MockTaskSrvcClient) UploadTestFile ¶
UploadTestFile provides a mock function with given fields: ctx, body
type MockTaskSrvcClient_CreateTask_Call ¶
MockTaskSrvcClient_CreateTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTask'
func (*MockTaskSrvcClient_CreateTask_Call) Return ¶
func (_c *MockTaskSrvcClient_CreateTask_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_CreateTask_Call
func (*MockTaskSrvcClient_CreateTask_Call) Run ¶
func (_c *MockTaskSrvcClient_CreateTask_Call) Run(run func(ctx context.Context, task srvc.Task)) *MockTaskSrvcClient_CreateTask_Call
func (*MockTaskSrvcClient_CreateTask_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_CreateTask_Call) RunAndReturn(run func(context.Context, srvc.Task) *srvcerror.Error) *MockTaskSrvcClient_CreateTask_Call
type MockTaskSrvcClient_DeleteIllustrationImg_Call ¶
MockTaskSrvcClient_DeleteIllustrationImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIllustrationImg'
func (*MockTaskSrvcClient_DeleteIllustrationImg_Call) Return ¶
func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteIllustrationImg_Call
func (*MockTaskSrvcClient_DeleteIllustrationImg_Call) Run ¶
func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) Run(run func(ctx context.Context, taskId string)) *MockTaskSrvcClient_DeleteIllustrationImg_Call
func (*MockTaskSrvcClient_DeleteIllustrationImg_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_DeleteIllustrationImg_Call) RunAndReturn(run func(context.Context, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteIllustrationImg_Call
type MockTaskSrvcClient_DeleteStatementImage_Call ¶
MockTaskSrvcClient_DeleteStatementImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteStatementImage'
func (*MockTaskSrvcClient_DeleteStatementImage_Call) Return ¶
func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteStatementImage_Call
func (*MockTaskSrvcClient_DeleteStatementImage_Call) Run ¶
func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) Run(run func(ctx context.Context, taskId string, filename string)) *MockTaskSrvcClient_DeleteStatementImage_Call
func (*MockTaskSrvcClient_DeleteStatementImage_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_DeleteStatementImage_Call) RunAndReturn(run func(context.Context, string, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteStatementImage_Call
type MockTaskSrvcClient_DeleteTask_Call ¶
MockTaskSrvcClient_DeleteTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTask'
func (*MockTaskSrvcClient_DeleteTask_Call) Return ¶
func (_c *MockTaskSrvcClient_DeleteTask_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_DeleteTask_Call
func (*MockTaskSrvcClient_DeleteTask_Call) Run ¶
func (_c *MockTaskSrvcClient_DeleteTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_DeleteTask_Call
func (*MockTaskSrvcClient_DeleteTask_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_DeleteTask_Call) RunAndReturn(run func(context.Context, string) *srvcerror.Error) *MockTaskSrvcClient_DeleteTask_Call
type MockTaskSrvcClient_DownloadOgFileArchive_Call ¶
MockTaskSrvcClient_DownloadOgFileArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadOgFileArchive'
func (*MockTaskSrvcClient_DownloadOgFileArchive_Call) Return ¶
func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_DownloadOgFileArchive_Call
func (*MockTaskSrvcClient_DownloadOgFileArchive_Call) Run ¶
func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) Run(run func(ctx context.Context, s3Key string)) *MockTaskSrvcClient_DownloadOgFileArchive_Call
func (*MockTaskSrvcClient_DownloadOgFileArchive_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_DownloadOgFileArchive_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_DownloadOgFileArchive_Call
type MockTaskSrvcClient_DownloadTestFile_Call ¶
MockTaskSrvcClient_DownloadTestFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadTestFile'
func (*MockTaskSrvcClient_DownloadTestFile_Call) Return ¶
func (_c *MockTaskSrvcClient_DownloadTestFile_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_DownloadTestFile_Call
func (*MockTaskSrvcClient_DownloadTestFile_Call) Run ¶
func (_c *MockTaskSrvcClient_DownloadTestFile_Call) Run(run func(ctx context.Context, testFileSha256 string)) *MockTaskSrvcClient_DownloadTestFile_Call
func (*MockTaskSrvcClient_DownloadTestFile_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_DownloadTestFile_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_DownloadTestFile_Call
type MockTaskSrvcClient_Expecter ¶
type MockTaskSrvcClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTaskSrvcClient_Expecter) CreateTask ¶
func (_e *MockTaskSrvcClient_Expecter) CreateTask(ctx interface{}, task interface{}) *MockTaskSrvcClient_CreateTask_Call
CreateTask is a helper method to define mock.On call
- ctx context.Context
- task srvc.Task
func (*MockTaskSrvcClient_Expecter) DeleteIllustrationImg ¶
func (_e *MockTaskSrvcClient_Expecter) DeleteIllustrationImg(ctx interface{}, taskId interface{}) *MockTaskSrvcClient_DeleteIllustrationImg_Call
DeleteIllustrationImg is a helper method to define mock.On call
- ctx context.Context
- taskId string
func (*MockTaskSrvcClient_Expecter) DeleteStatementImage ¶
func (_e *MockTaskSrvcClient_Expecter) DeleteStatementImage(ctx interface{}, taskId interface{}, filename interface{}) *MockTaskSrvcClient_DeleteStatementImage_Call
DeleteStatementImage is a helper method to define mock.On call
- ctx context.Context
- taskId string
- filename string
func (*MockTaskSrvcClient_Expecter) DeleteTask ¶
func (_e *MockTaskSrvcClient_Expecter) DeleteTask(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_DeleteTask_Call
DeleteTask is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskSrvcClient_Expecter) DownloadOgFileArchive ¶
func (_e *MockTaskSrvcClient_Expecter) DownloadOgFileArchive(ctx interface{}, s3Key interface{}) *MockTaskSrvcClient_DownloadOgFileArchive_Call
DownloadOgFileArchive is a helper method to define mock.On call
- ctx context.Context
- s3Key string
func (*MockTaskSrvcClient_Expecter) DownloadTestFile ¶
func (_e *MockTaskSrvcClient_Expecter) DownloadTestFile(ctx interface{}, testFileSha256 interface{}) *MockTaskSrvcClient_DownloadTestFile_Call
DownloadTestFile is a helper method to define mock.On call
- ctx context.Context
- testFileSha256 string
func (*MockTaskSrvcClient_Expecter) ExportTaskAsZip ¶
func (_e *MockTaskSrvcClient_Expecter) ExportTaskAsZip(ctx interface{}, taskId interface{}) *MockTaskSrvcClient_ExportTaskAsZip_Call
ExportTaskAsZip is a helper method to define mock.On call
- ctx context.Context
- taskId string
func (*MockTaskSrvcClient_Expecter) GetHttpUrlForIllustrImg ¶
func (_e *MockTaskSrvcClient_Expecter) GetHttpUrlForIllustrImg(ctx interface{}, illstrImgS3Key interface{}) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
GetHttpUrlForIllustrImg is a helper method to define mock.On call
- ctx context.Context
- illstrImgS3Key string
func (*MockTaskSrvcClient_Expecter) GetHttpUrlForStatementImage ¶
func (_e *MockTaskSrvcClient_Expecter) GetHttpUrlForStatementImage(ctx interface{}, statementImageS3Key interface{}) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
GetHttpUrlForStatementImage is a helper method to define mock.On call
- ctx context.Context
- statementImageS3Key string
func (*MockTaskSrvcClient_Expecter) GetTask ¶
func (_e *MockTaskSrvcClient_Expecter) GetTask(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_GetTask_Call
GetTask is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskSrvcClient_Expecter) GetTaskFullNames ¶
func (_e *MockTaskSrvcClient_Expecter) GetTaskFullNames(ctx interface{}, shortIds interface{}) *MockTaskSrvcClient_GetTaskFullNames_Call
GetTaskFullNames is a helper method to define mock.On call
- ctx context.Context
- shortIds []string
func (*MockTaskSrvcClient_Expecter) GetTaskPreview ¶
func (_e *MockTaskSrvcClient_Expecter) GetTaskPreview(ctx interface{}, shortId interface{}) *MockTaskSrvcClient_GetTaskPreview_Call
GetTaskPreview is a helper method to define mock.On call
- ctx context.Context
- shortId string
func (*MockTaskSrvcClient_Expecter) GetTestDownlUrl ¶
func (_e *MockTaskSrvcClient_Expecter) GetTestDownlUrl(ctx interface{}, testFileSha256 interface{}) *MockTaskSrvcClient_GetTestDownlUrl_Call
GetTestDownlUrl is a helper method to define mock.On call
- ctx context.Context
- testFileSha256 string
func (*MockTaskSrvcClient_Expecter) ImportTaskFromZip ¶
func (_e *MockTaskSrvcClient_Expecter) ImportTaskFromZip(ctx interface{}, zipBytes interface{}, overrideId interface{}) *MockTaskSrvcClient_ImportTaskFromZip_Call
ImportTaskFromZip is a helper method to define mock.On call
- ctx context.Context
- zipBytes []byte
- overrideId string
func (*MockTaskSrvcClient_Expecter) ListTaskPreviews ¶
func (_e *MockTaskSrvcClient_Expecter) ListTaskPreviews(ctx interface{}) *MockTaskSrvcClient_ListTaskPreviews_Call
ListTaskPreviews is a helper method to define mock.On call
- ctx context.Context
func (*MockTaskSrvcClient_Expecter) ListTasks ¶
func (_e *MockTaskSrvcClient_Expecter) ListTasks(ctx interface{}) *MockTaskSrvcClient_ListTasks_Call
ListTasks is a helper method to define mock.On call
- ctx context.Context
func (*MockTaskSrvcClient_Expecter) ResolveNames ¶
func (_e *MockTaskSrvcClient_Expecter) ResolveNames(ctx interface{}, shortIds interface{}) *MockTaskSrvcClient_ResolveNames_Call
ResolveNames is a helper method to define mock.On call
- ctx context.Context
- shortIds []string
func (*MockTaskSrvcClient_Expecter) SearchTasksByName ¶
func (_e *MockTaskSrvcClient_Expecter) SearchTasksByName(ctx interface{}, name interface{}) *MockTaskSrvcClient_SearchTasksByName_Call
SearchTasksByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockTaskSrvcClient_Expecter) UpdateIllustrationImg ¶
func (_e *MockTaskSrvcClient_Expecter) UpdateIllustrationImg(ctx interface{}, taskId interface{}, img interface{}) *MockTaskSrvcClient_UpdateIllustrationImg_Call
UpdateIllustrationImg is a helper method to define mock.On call
- ctx context.Context
- taskId string
- img srvc.IllustrationImage
func (*MockTaskSrvcClient_Expecter) UpdateStatementMd ¶
func (_e *MockTaskSrvcClient_Expecter) UpdateStatementMd(ctx interface{}, taskId interface{}, statement interface{}) *MockTaskSrvcClient_UpdateStatementMd_Call
UpdateStatementMd is a helper method to define mock.On call
- ctx context.Context
- taskId string
- statement srvc.MarkdownStatement
func (*MockTaskSrvcClient_Expecter) UploadIllustrationImg ¶
func (_e *MockTaskSrvcClient_Expecter) UploadIllustrationImg(ctx interface{}, mimeType interface{}, body interface{}) *MockTaskSrvcClient_UploadIllustrationImg_Call
UploadIllustrationImg is a helper method to define mock.On call
- ctx context.Context
- mimeType string
- body []byte
func (*MockTaskSrvcClient_Expecter) UploadOgFileArchive ¶
func (_e *MockTaskSrvcClient_Expecter) UploadOgFileArchive(ctx interface{}, zipBytes interface{}) *MockTaskSrvcClient_UploadOgFileArchive_Call
UploadOgFileArchive is a helper method to define mock.On call
- ctx context.Context
- zipBytes []byte
func (*MockTaskSrvcClient_Expecter) UploadStatementImage ¶
func (_e *MockTaskSrvcClient_Expecter) UploadStatementImage(ctx interface{}, taskId interface{}, filename interface{}, mimeType interface{}, body interface{}) *MockTaskSrvcClient_UploadStatementImage_Call
UploadStatementImage is a helper method to define mock.On call
- ctx context.Context
- taskId string
- filename string
- mimeType string
- body []byte
func (*MockTaskSrvcClient_Expecter) UploadTestFile ¶
func (_e *MockTaskSrvcClient_Expecter) UploadTestFile(ctx interface{}, body interface{}) *MockTaskSrvcClient_UploadTestFile_Call
UploadTestFile is a helper method to define mock.On call
- ctx context.Context
- body []byte
type MockTaskSrvcClient_ExportTaskAsZip_Call ¶
MockTaskSrvcClient_ExportTaskAsZip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportTaskAsZip'
func (*MockTaskSrvcClient_ExportTaskAsZip_Call) Return ¶
func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) Return(_a0 []byte, _a1 *srvcerror.Error) *MockTaskSrvcClient_ExportTaskAsZip_Call
func (*MockTaskSrvcClient_ExportTaskAsZip_Call) Run ¶
func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) Run(run func(ctx context.Context, taskId string)) *MockTaskSrvcClient_ExportTaskAsZip_Call
func (*MockTaskSrvcClient_ExportTaskAsZip_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_ExportTaskAsZip_Call) RunAndReturn(run func(context.Context, string) ([]byte, *srvcerror.Error)) *MockTaskSrvcClient_ExportTaskAsZip_Call
type MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call ¶
MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHttpUrlForIllustrImg'
func (*MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Return ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
func (*MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Run ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) Run(run func(ctx context.Context, illstrImgS3Key string)) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
func (*MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetHttpUrlForIllustrImg_Call
type MockTaskSrvcClient_GetHttpUrlForStatementImage_Call ¶
MockTaskSrvcClient_GetHttpUrlForStatementImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHttpUrlForStatementImage'
func (*MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Return ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
func (*MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Run ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) Run(run func(ctx context.Context, statementImageS3Key string)) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
func (*MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetHttpUrlForStatementImage_Call
type MockTaskSrvcClient_GetTaskFullNames_Call ¶
MockTaskSrvcClient_GetTaskFullNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTaskFullNames'
func (*MockTaskSrvcClient_GetTaskFullNames_Call) Return ¶
func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTaskFullNames_Call
func (*MockTaskSrvcClient_GetTaskFullNames_Call) Run ¶
func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskSrvcClient_GetTaskFullNames_Call
func (*MockTaskSrvcClient_GetTaskFullNames_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetTaskFullNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_GetTaskFullNames_Call
type MockTaskSrvcClient_GetTaskPreview_Call ¶
MockTaskSrvcClient_GetTaskPreview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTaskPreview'
func (*MockTaskSrvcClient_GetTaskPreview_Call) Return ¶
func (_c *MockTaskSrvcClient_GetTaskPreview_Call) Return(_a0 srvc.TaskPreview, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTaskPreview_Call
func (*MockTaskSrvcClient_GetTaskPreview_Call) Run ¶
func (_c *MockTaskSrvcClient_GetTaskPreview_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_GetTaskPreview_Call
func (*MockTaskSrvcClient_GetTaskPreview_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetTaskPreview_Call) RunAndReturn(run func(context.Context, string) (srvc.TaskPreview, *srvcerror.Error)) *MockTaskSrvcClient_GetTaskPreview_Call
type MockTaskSrvcClient_GetTask_Call ¶
MockTaskSrvcClient_GetTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTask'
func (*MockTaskSrvcClient_GetTask_Call) Return ¶
func (_c *MockTaskSrvcClient_GetTask_Call) Return(_a0 srvc.Task, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTask_Call
func (*MockTaskSrvcClient_GetTask_Call) Run ¶
func (_c *MockTaskSrvcClient_GetTask_Call) Run(run func(ctx context.Context, shortId string)) *MockTaskSrvcClient_GetTask_Call
func (*MockTaskSrvcClient_GetTask_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetTask_Call) RunAndReturn(run func(context.Context, string) (srvc.Task, *srvcerror.Error)) *MockTaskSrvcClient_GetTask_Call
type MockTaskSrvcClient_GetTestDownlUrl_Call ¶
MockTaskSrvcClient_GetTestDownlUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTestDownlUrl'
func (*MockTaskSrvcClient_GetTestDownlUrl_Call) Return ¶
func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_GetTestDownlUrl_Call
func (*MockTaskSrvcClient_GetTestDownlUrl_Call) Run ¶
func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) Run(run func(ctx context.Context, testFileSha256 string)) *MockTaskSrvcClient_GetTestDownlUrl_Call
func (*MockTaskSrvcClient_GetTestDownlUrl_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_GetTestDownlUrl_Call) RunAndReturn(run func(context.Context, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_GetTestDownlUrl_Call
type MockTaskSrvcClient_ImportTaskFromZip_Call ¶
MockTaskSrvcClient_ImportTaskFromZip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportTaskFromZip'
func (*MockTaskSrvcClient_ImportTaskFromZip_Call) Return ¶
func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_ImportTaskFromZip_Call
func (*MockTaskSrvcClient_ImportTaskFromZip_Call) Run ¶
func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) Run(run func(ctx context.Context, zipBytes []byte, overrideId string)) *MockTaskSrvcClient_ImportTaskFromZip_Call
func (*MockTaskSrvcClient_ImportTaskFromZip_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_ImportTaskFromZip_Call) RunAndReturn(run func(context.Context, []byte, string) (string, *srvcerror.Error)) *MockTaskSrvcClient_ImportTaskFromZip_Call
type MockTaskSrvcClient_ListTaskPreviews_Call ¶
MockTaskSrvcClient_ListTaskPreviews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTaskPreviews'
func (*MockTaskSrvcClient_ListTaskPreviews_Call) Return ¶
func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) Return(_a0 []srvc.TaskPreview, _a1 *srvcerror.Error) *MockTaskSrvcClient_ListTaskPreviews_Call
func (*MockTaskSrvcClient_ListTaskPreviews_Call) Run ¶
func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) Run(run func(ctx context.Context)) *MockTaskSrvcClient_ListTaskPreviews_Call
func (*MockTaskSrvcClient_ListTaskPreviews_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_ListTaskPreviews_Call) RunAndReturn(run func(context.Context) ([]srvc.TaskPreview, *srvcerror.Error)) *MockTaskSrvcClient_ListTaskPreviews_Call
type MockTaskSrvcClient_ListTasks_Call ¶
MockTaskSrvcClient_ListTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTasks'
func (*MockTaskSrvcClient_ListTasks_Call) Return ¶
func (_c *MockTaskSrvcClient_ListTasks_Call) Return(_a0 []srvc.Task, _a1 *srvcerror.Error) *MockTaskSrvcClient_ListTasks_Call
func (*MockTaskSrvcClient_ListTasks_Call) Run ¶
func (_c *MockTaskSrvcClient_ListTasks_Call) Run(run func(ctx context.Context)) *MockTaskSrvcClient_ListTasks_Call
func (*MockTaskSrvcClient_ListTasks_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_ListTasks_Call) RunAndReturn(run func(context.Context) ([]srvc.Task, *srvcerror.Error)) *MockTaskSrvcClient_ListTasks_Call
type MockTaskSrvcClient_ResolveNames_Call ¶
MockTaskSrvcClient_ResolveNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveNames'
func (*MockTaskSrvcClient_ResolveNames_Call) Return ¶
func (_c *MockTaskSrvcClient_ResolveNames_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_ResolveNames_Call
func (*MockTaskSrvcClient_ResolveNames_Call) Run ¶
func (_c *MockTaskSrvcClient_ResolveNames_Call) Run(run func(ctx context.Context, shortIds []string)) *MockTaskSrvcClient_ResolveNames_Call
func (*MockTaskSrvcClient_ResolveNames_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_ResolveNames_Call) RunAndReturn(run func(context.Context, []string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_ResolveNames_Call
type MockTaskSrvcClient_SearchTasksByName_Call ¶
MockTaskSrvcClient_SearchTasksByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchTasksByName'
func (*MockTaskSrvcClient_SearchTasksByName_Call) Return ¶
func (_c *MockTaskSrvcClient_SearchTasksByName_Call) Return(_a0 []string, _a1 *srvcerror.Error) *MockTaskSrvcClient_SearchTasksByName_Call
func (*MockTaskSrvcClient_SearchTasksByName_Call) Run ¶
func (_c *MockTaskSrvcClient_SearchTasksByName_Call) Run(run func(ctx context.Context, name string)) *MockTaskSrvcClient_SearchTasksByName_Call
func (*MockTaskSrvcClient_SearchTasksByName_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_SearchTasksByName_Call) RunAndReturn(run func(context.Context, string) ([]string, *srvcerror.Error)) *MockTaskSrvcClient_SearchTasksByName_Call
type MockTaskSrvcClient_UpdateIllustrationImg_Call ¶
MockTaskSrvcClient_UpdateIllustrationImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIllustrationImg'
func (*MockTaskSrvcClient_UpdateIllustrationImg_Call) Return ¶
func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UpdateIllustrationImg_Call
func (*MockTaskSrvcClient_UpdateIllustrationImg_Call) Run ¶
func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) Run(run func(ctx context.Context, taskId string, img srvc.IllustrationImage)) *MockTaskSrvcClient_UpdateIllustrationImg_Call
func (*MockTaskSrvcClient_UpdateIllustrationImg_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_UpdateIllustrationImg_Call) RunAndReturn(run func(context.Context, string, srvc.IllustrationImage) *srvcerror.Error) *MockTaskSrvcClient_UpdateIllustrationImg_Call
type MockTaskSrvcClient_UpdateStatementMd_Call ¶
MockTaskSrvcClient_UpdateStatementMd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatementMd'
func (*MockTaskSrvcClient_UpdateStatementMd_Call) Return ¶
func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UpdateStatementMd_Call
func (*MockTaskSrvcClient_UpdateStatementMd_Call) Run ¶
func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) Run(run func(ctx context.Context, taskId string, statement srvc.MarkdownStatement)) *MockTaskSrvcClient_UpdateStatementMd_Call
func (*MockTaskSrvcClient_UpdateStatementMd_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_UpdateStatementMd_Call) RunAndReturn(run func(context.Context, string, srvc.MarkdownStatement) *srvcerror.Error) *MockTaskSrvcClient_UpdateStatementMd_Call
type MockTaskSrvcClient_UploadIllustrationImg_Call ¶
MockTaskSrvcClient_UploadIllustrationImg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadIllustrationImg'
func (*MockTaskSrvcClient_UploadIllustrationImg_Call) Return ¶
func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadIllustrationImg_Call
func (*MockTaskSrvcClient_UploadIllustrationImg_Call) Run ¶
func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) Run(run func(ctx context.Context, mimeType string, body []byte)) *MockTaskSrvcClient_UploadIllustrationImg_Call
func (*MockTaskSrvcClient_UploadIllustrationImg_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_UploadIllustrationImg_Call) RunAndReturn(run func(context.Context, string, []byte) (string, *srvcerror.Error)) *MockTaskSrvcClient_UploadIllustrationImg_Call
type MockTaskSrvcClient_UploadOgFileArchive_Call ¶
MockTaskSrvcClient_UploadOgFileArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadOgFileArchive'
func (*MockTaskSrvcClient_UploadOgFileArchive_Call) Return ¶
func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadOgFileArchive_Call
func (*MockTaskSrvcClient_UploadOgFileArchive_Call) Run ¶
func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) Run(run func(ctx context.Context, zipBytes []byte)) *MockTaskSrvcClient_UploadOgFileArchive_Call
func (*MockTaskSrvcClient_UploadOgFileArchive_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_UploadOgFileArchive_Call) RunAndReturn(run func(context.Context, []byte) (string, *srvcerror.Error)) *MockTaskSrvcClient_UploadOgFileArchive_Call
type MockTaskSrvcClient_UploadStatementImage_Call ¶
MockTaskSrvcClient_UploadStatementImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadStatementImage'
func (*MockTaskSrvcClient_UploadStatementImage_Call) Return ¶
func (_c *MockTaskSrvcClient_UploadStatementImage_Call) Return(_a0 string, _a1 *srvcerror.Error) *MockTaskSrvcClient_UploadStatementImage_Call
func (*MockTaskSrvcClient_UploadStatementImage_Call) Run ¶
func (_c *MockTaskSrvcClient_UploadStatementImage_Call) Run(run func(ctx context.Context, taskId string, filename string, mimeType string, body []byte)) *MockTaskSrvcClient_UploadStatementImage_Call
func (*MockTaskSrvcClient_UploadStatementImage_Call) RunAndReturn ¶
type MockTaskSrvcClient_UploadTestFile_Call ¶
MockTaskSrvcClient_UploadTestFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadTestFile'
func (*MockTaskSrvcClient_UploadTestFile_Call) Return ¶
func (_c *MockTaskSrvcClient_UploadTestFile_Call) Return(_a0 *srvcerror.Error) *MockTaskSrvcClient_UploadTestFile_Call
func (*MockTaskSrvcClient_UploadTestFile_Call) Run ¶
func (_c *MockTaskSrvcClient_UploadTestFile_Call) Run(run func(ctx context.Context, body []byte)) *MockTaskSrvcClient_UploadTestFile_Call
func (*MockTaskSrvcClient_UploadTestFile_Call) RunAndReturn ¶
func (_c *MockTaskSrvcClient_UploadTestFile_Call) RunAndReturn(run func(context.Context, []byte) *srvcerror.Error) *MockTaskSrvcClient_UploadTestFile_Call