Documentation ¶
Index ¶
- type FakeFileCache
- func (c FakeFileCache) Files() map[string]bool
- func (c FakeFileCache) FilesInPkg(pkg string) (map[string]bool, error)
- func (c FakeFileCache) ModulePath() string
- func (c FakeFileCache) Pkgs() map[string]bool
- func (c FakeFileCache) ReadFile(path string) ([]byte, error)
- func (c *FakeFileCache) ReadGoFile(path string, loadFlags parser.Mode) (*ast.File, *token.FileSet, error)
- func (c FakeFileCache) Root() string
- type FakeFileCacheEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFileCache ¶
type FakeFileCache struct {
// contains filtered or unexported fields
}
func NewFakeFileCache ¶
func NewFakeFileCache(root string, files map[string]FakeFileCacheEntry) (*FakeFileCache, error)
func (FakeFileCache) Files ¶
func (c FakeFileCache) Files() map[string]bool
func (FakeFileCache) FilesInPkg ¶
func (c FakeFileCache) FilesInPkg(pkg string) (map[string]bool, error)
func (FakeFileCache) ModulePath ¶
func (c FakeFileCache) ModulePath() string
func (FakeFileCache) Pkgs ¶
func (c FakeFileCache) Pkgs() map[string]bool
func (*FakeFileCache) ReadGoFile ¶
func (FakeFileCache) Root ¶
func (c FakeFileCache) Root() string
type FakeFileCacheEntry ¶
type FakeFileCacheEntry struct {
Data []byte
}
Click to show internal directories.
Click to hide internal directories.