mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FortifyXMLParser

type FortifyXMLParser struct {
	EmptyReportDefinition bool
	ForceError            bool
}

FortifyXMLParser struct for mocking object

func NewFortifyXMLParser

func NewFortifyXMLParser() *FortifyXMLParser

NewFortifyXMLParser creates new object/struct

func (*FortifyXMLParser) XMLParse

func (m *FortifyXMLParser) XMLParse(inputFile string) (*data.ReportDefinition, error)

XMLParse parsing of xml document

type Package

type Package struct {
	io.Closer
	SaveCalled      bool
	SaveAsInterface interface{}
	ForceError      bool
}

Package mock of io.Closer and other information for testing

func NewPackage

func NewPackage() *Package

NewPackage creates new package

func (*Package) Save

func (m *Package) Save() error

Save - mocked

func (*Package) SaveAs

func (m *Package) SaveAs(target interface{}) error

SaveAs - mocked

Jump to

Keyboard shortcuts

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