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

Function expectInTx

enterprise/dbcrypt/dbcrypt_internal_test.go:827–833  ·  view source on GitHub ↗
(mdb *dbmock.MockStore)

Source from the content-addressed store, hash-verified

825}
826
827func expectInTx(mdb *dbmock.MockStore) *gomock.Call {
828 return mdb.EXPECT().InTx(gomock.Any(), gomock.Any()).Times(1).DoAndReturn(
829 func(f func(store database.Store) error, _ *database.TxOptions) error {
830 return f(mdb)
831 },
832 )
833}
834
835func requireEncryptedEquals(t *testing.T, c Cipher, value, expected string) {
836 t.Helper()

Callers 1

TestNewFunction · 0.85

Calls 2

InTxMethod · 0.65
EXPECTMethod · 0.45

Tested by

no test coverage detected