Documentation
¶
Index ¶
- func AssertCheckCode(t *testing.T, includeCode string, excludeCode string, results []result.Result, ...)
- func CreateModulesFromSource(source string, ext string, t *testing.T) []block.Module
- func CreateTestFile(filename, contents string) string
- func CreateTestFileWithModule(contents string, moduleContents string) string
- func ScanHCL(source string, t *testing.T, additionalOptions ...scanner.Option) []result.Result
- func ScanJSON(source string, t *testing.T) []result.Result
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCheckCode ¶
func CreateModulesFromSource ¶ added in v0.58.2
func CreateTestFile ¶
Types ¶
type FileSystem ¶ added in v0.58.2
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFilesystem ¶ added in v0.58.2
func NewFilesystem() (*FileSystem, error)
func (*FileSystem) AddDir ¶ added in v0.58.2
func (fs *FileSystem) AddDir(path string) error
func (*FileSystem) Close ¶ added in v0.58.2
func (fs *FileSystem) Close() error
func (*FileSystem) RealPath ¶ added in v0.58.2
func (fs *FileSystem) RealPath(path string) string
func (*FileSystem) WriteFile ¶ added in v0.58.2
func (fs *FileSystem) WriteFile(path string, data []byte) error
func (*FileSystem) WriteTextFile ¶ added in v0.58.2
func (fs *FileSystem) WriteTextFile(path string, text string) error
Click to show internal directories.
Click to hide internal directories.