MCPcopy Create free account
hub / github.com/coder/coder / setupNoCiphers

Function setupNoCiphers

enterprise/dbcrypt/dbcrypt_internal_test.go:865–873  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

863}
864
865func setupNoCiphers(t *testing.T) (db database.Store, cryptodb *dbCrypt) {
866 t.Helper()
867 rawDB, _ := dbtestutil.NewDB(t)
868 cdb, err := New(context.Background(), rawDB)
869 require.NoError(t, err)
870 cryptDB, ok := cdb.(*dbCrypt)
871 require.True(t, ok)
872 return rawDB, cryptDB
873}
874
875func fakeBase64RandomData(t *testing.T, n int) string {
876 t.Helper()

Callers 2

TestEncryptDecryptFieldFunction · 0.85
TestUserSecretsFunction · 0.85

Calls 3

NewDBFunction · 0.92
NewFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected