Documentation ¶
Index ¶
- type MockJSParser
- type MockJsDocument
- func (m *MockJsDocument) AddImport(*jsparse.ImportDependency) []*jsparse.ImportDependency
- func (m *MockJsDocument) AddOther(...string)
- func (m *MockJsDocument) AddSerializable(s jsparse.JSSerialize)
- func (m *MockJsDocument) Clone() jsparse.JSDocument
- func (m *MockJsDocument) DefaultExport() *jsparse.JsDocumentScope
- func (m *MockJsDocument) Extension() string
- func (m *MockJsDocument) Imports() []*jsparse.ImportDependency
- func (m *MockJsDocument) Key() string
- func (m *MockJsDocument) Name() string
- func (m *MockJsDocument) Other() []string
- func (m *MockJsDocument) WriteFile(string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJSParser ¶ added in v0.7.0
type MockJSParser struct { ParseDocument jsparse.JSDocument Err error }
func (*MockJSParser) CanParse ¶ added in v0.16.0
func (m *MockJSParser) CanParse(path string) bool
func (*MockJSParser) Parse ¶ added in v0.7.0
func (m *MockJSParser) Parse(string, string) (jsparse.JSDocument, error)
type MockJsDocument ¶
type MockJsDocument struct {
// contains filtered or unexported fields
}
func NewMockJSDocument ¶
func NewMockJSDocument(name string, extension string, defaultExport string) *MockJsDocument
func (*MockJsDocument) AddImport ¶
func (m *MockJsDocument) AddImport(*jsparse.ImportDependency) []*jsparse.ImportDependency
func (*MockJsDocument) AddOther ¶
func (m *MockJsDocument) AddOther(...string)
func (*MockJsDocument) AddSerializable ¶ added in v0.7.0
func (m *MockJsDocument) AddSerializable(s jsparse.JSSerialize)
func (*MockJsDocument) Clone ¶ added in v0.21.0
func (m *MockJsDocument) Clone() jsparse.JSDocument
func (*MockJsDocument) DefaultExport ¶ added in v0.7.0
func (m *MockJsDocument) DefaultExport() *jsparse.JsDocumentScope
func (*MockJsDocument) Extension ¶
func (m *MockJsDocument) Extension() string
func (*MockJsDocument) Imports ¶
func (m *MockJsDocument) Imports() []*jsparse.ImportDependency
func (*MockJsDocument) Key ¶
func (m *MockJsDocument) Key() string
func (*MockJsDocument) Name ¶
func (m *MockJsDocument) Name() string
func (*MockJsDocument) Other ¶
func (m *MockJsDocument) Other() []string
func (*MockJsDocument) WriteFile ¶
func (m *MockJsDocument) WriteFile(string) error
Click to show internal directories.
Click to hide internal directories.