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

Function requireSecretValidationEqualsError

coderd/usersecrets_test.go:445–449  ·  view source on GitHub ↗
(t *testing.T, err error, status int, field string, detail string)

Source from the content-addressed store, hash-verified

443}
444
445func requireSecretValidationEqualsError(t *testing.T, err error, status int, field string, detail string) {
446 t.Helper()
447 validation := requireSecretValidation(t, err, status, field)
448 assert.Equal(t, detail, validation.Detail)
449}
450
451func requireSecretValidation(t *testing.T, err error, status int, field string) codersdk.ValidationError {
452 t.Helper()

Callers 2

TestPostUserSecretFunction · 0.85
TestPatchUserSecretFunction · 0.85

Calls 3

requireSecretValidationFunction · 0.85
HelperMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected