/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/policy/testing.go
18 строк
412 B
Samsondeen
Add policy client and protocol plumbing (#38514)
21 май 2026, 14:25
Не верифицирован
21 май 2026, 14:25
42fe426
Код
Авторство
О чём код?
// Copyright IBM Corp. 2014, 2026 // SPDX-License-Identifier: BUSL-1.1 package policy import ( "testing" ) func NewTestMockClient(t *testing.T) *MockClient { ret := &MockClient{} ret.EvaluateProviderResponse = &EvaluationResponse{Overall: AllowResult} ret.EvaluateResponse = &EvaluationResponse{Overall: AllowResult} ret.EvaluateModuleResponse = &EvaluationResponse{Overall: AllowResult} return ret }