MCPcopy Index your code
hub / github.com/coder/coder / withBuild

Function withBuild

coderd/wsbuilder/wsbuilder_test.go:1551–1556  ·  view source on GitHub ↗
(mTx *dbmock.MockStore)

Source from the content-addressed store, hash-verified

1549}
1550
1551func 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.

Callers

nothing calls this directly

Calls 2

GetWorkspaceBuildByIDMethod · 0.65
EXPECTMethod · 0.45

Tested by

no test coverage detected