(mTx *dbmock.MockStore)
| 1549 | } |
| 1550 | |
| 1551 | func withBuild(mTx *dbmock.MockStore) { |
| 1552 | mTx.EXPECT().GetWorkspaceBuildByID(gomock.Any(), gomock.Any()).Times(1). |
| 1553 | DoAndReturn(func(ctx context.Context, id uuid.UUID) (database.WorkspaceBuild, error) { |
| 1554 | return database.WorkspaceBuild{ID: id}, nil |
| 1555 | }) |
| 1556 | } |
| 1557 | |
| 1558 | // expectBuild captures a call to InsertWorkspaceBuild and runs the provided assertions |
| 1559 | // against it. |
nothing calls this directly
no test coverage detected