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

Function requireAIProviderRawEncrypted

enterprise/dbcrypt/dbcrypt_internal_test.go:1075–1088  ·  view source on GitHub ↗
(
	ctx context.Context,
	t *testing.T,
	rawDB database.Store,
	providerID uuid.UUID,
	ciphers []Cipher,
	wantSettings string,
)

Source from the content-addressed store, hash-verified

1073}
1074
1075func requireAIProviderRawEncrypted(
1076 ctx context.Context,
1077 t *testing.T,
1078 rawDB database.Store,
1079 providerID uuid.UUID,
1080 ciphers []Cipher,
1081 wantSettings string,
1082) {
1083 t.Helper()
1084 raw, err := rawDB.GetAIProviderByID(ctx, providerID)
1085 require.NoError(t, err)
1086 require.True(t, raw.Settings.Valid)
1087 requireEncryptedEquals(t, ciphers[0], raw.Settings.String, wantSettings)
1088}
1089
1090func requireAIProviderKeyDecrypted(
1091 t *testing.T,

Callers 1

TestAIProvidersFunction · 0.85

Calls 3

requireEncryptedEqualsFunction · 0.70
HelperMethod · 0.65
GetAIProviderByIDMethod · 0.65

Tested by

no test coverage detected