Documentation ¶
Index ¶
- type TestMetadata
- type TestRecord
- type TestStore
- func (s *TestStore) Add(testPath string) error
- func (s *TestStore) AddIfNotExists(path string) error
- func (s *TestStore) Exists(path string) bool
- func (s *TestStore) List() ([]*TestRecord, error)
- func (s *TestStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
- func (s *TestStore) Remove(testPath string) error
- func (s *TestStore) SetDiagnosticsState(path string, source globalAst.DiagnosticSource, state op.OpState) error
- func (s *TestStore) SetLogger(logger *log.Logger)
- func (s *TestStore) SetMetaState(path string, state op.OpState) error
- func (s *TestStore) SetPreloadEmbeddedSchemaState(path string, state op.OpState) error
- func (s *TestStore) SetReferenceOriginsState(path string, state op.OpState) error
- func (s *TestStore) SetReferenceTargetsState(path string, state op.OpState) error
- func (s *TestStore) TestRecordByPath(path string) (*TestRecord, error)
- func (s *TestStore) UpdateDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.Diagnostics) error
- func (s *TestStore) UpdateMetadata(path string, meta *tftest.Meta, mErr error) error
- func (s *TestStore) UpdateParsedFiles(path string, pFiles ast.Files, pErr error) error
- func (s *TestStore) UpdateReferenceOrigins(path string, origins reference.Origins, roErr error) error
- func (s *TestStore) UpdateReferenceTargets(path string, refs reference.Targets, rErr error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestMetadata ¶
type TestMetadata struct {
Filenames []string
}
TestMetadata contains the result of the early decoding of a test, it will be used obtain the correct provider and related module schemas
func (TestMetadata) Copy ¶
func (tm TestMetadata) Copy() TestMetadata
type TestRecord ¶
type TestRecord struct { PreloadEmbeddedSchemaState op.OpState Meta TestMetadata MetaErr error MetaState op.OpState RefTargets reference.Targets RefTargetsErr error RefTargetsState op.OpState RefOrigins reference.Origins RefOriginsErr error RefOriginsState op.OpState ParsedFiles ast.Files ParsingErr error Diagnostics ast.SourceDiagnostics DiagnosticsState globalAst.DiagnosticSourceState // contains filtered or unexported fields }
TestRecord represents a test location in the state
func (*TestRecord) Copy ¶
func (m *TestRecord) Copy() *TestRecord
func (*TestRecord) Path ¶
func (m *TestRecord) Path() string
type TestStore ¶
type TestStore struct {
// contains filtered or unexported fields
}
func NewTestStore ¶
func NewTestStore(changeStore *globalState.ChangeStore, providerSchemasStore *globalState.ProviderSchemaStore) (*TestStore, error)
func (*TestStore) AddIfNotExists ¶
func (*TestStore) List ¶
func (s *TestStore) List() ([]*TestRecord, error)
func (*TestStore) ProviderSchema ¶
func (*TestStore) SetDiagnosticsState ¶
func (*TestStore) SetMetaState ¶
func (*TestStore) SetPreloadEmbeddedSchemaState ¶
func (*TestStore) SetReferenceOriginsState ¶
func (*TestStore) SetReferenceTargetsState ¶
func (*TestStore) TestRecordByPath ¶
func (s *TestStore) TestRecordByPath(path string) (*TestRecord, error)
func (*TestStore) UpdateDiagnostics ¶
func (s *TestStore) UpdateDiagnostics(path string, source globalAst.DiagnosticSource, diags ast.Diagnostics) error
func (*TestStore) UpdateMetadata ¶
func (*TestStore) UpdateParsedFiles ¶
func (*TestStore) UpdateReferenceOrigins ¶
Click to show internal directories.
Click to hide internal directories.