testcache

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) ReadFile

func (c FakeFileCache) ReadFile(path string) ([]byte, error)

func (*FakeFileCache) ReadGoFile

func (c *FakeFileCache) ReadGoFile(path string, loadFlags parser.Mode) (*ast.File, *token.FileSet, error)

func (FakeFileCache) Root

func (c FakeFileCache) Root() string

type FakeFileCacheEntry

type FakeFileCacheEntry struct {
	Data []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL