mock

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPackedComponent

type MockPackedComponent struct {
	WasRepacked bool
	Depends     []*jsparse.ImportDependency
	FilePath    string
	Key         string
	RealName    string
}

func (*MockPackedComponent) BundleKey

func (m *MockPackedComponent) BundleKey() string

func (*MockPackedComponent) Dependencies

func (m *MockPackedComponent) Dependencies() []*jsparse.ImportDependency

func (*MockPackedComponent) IsStaticResource added in v0.7.0

func (m *MockPackedComponent) IsStaticResource() bool

func (*MockPackedComponent) JsDocument added in v0.21.0

func (m *MockPackedComponent) JsDocument() jsparse.JSDocument

func (*MockPackedComponent) Name

func (m *MockPackedComponent) Name() string

func (*MockPackedComponent) OriginalFilePath

func (m *MockPackedComponent) OriginalFilePath() string

func (*MockPackedComponent) Repack

func (m *MockPackedComponent) Repack() error

func (*MockPackedComponent) RepackForWaitGroup

func (m *MockPackedComponent) RepackForWaitGroup(wg *sync.WaitGroup) error

func (*MockPackedComponent) WebWrapper

func (m *MockPackedComponent) WebWrapper() webwrap.JSWebWrapper

type MockPacker

type MockPacker struct {
	Components []srcpack.Component
}

func (*MockPacker) PackMany

func (m *MockPacker) PackMany(pages []string) ([]srcpack.PackComponent, error)

func (*MockPacker) PackSingle

func (m *MockPacker) PackSingle(logger log.Logger, file string) (srcpack.PackComponent, error)

func (*MockPacker) ReattachLogger

func (m *MockPacker) ReattachLogger(logger log.Logger) srcpack.Packer

Jump to

Keyboard shortcuts

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