forgeio

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainFiles

func ContainFiles(pathes ...string) types.GomegaMatcher

Types

type DummyFile

type DummyFile struct {
	// contains filtered or unexported fields
}

type DummyWriter

type DummyWriter struct {
	// contains filtered or unexported fields
}

func NewDummyWriter

func NewDummyWriter() DummyWriter

func (*DummyWriter) Write

func (d *DummyWriter) Write(filePath string, _ func(io.Writer) error) error

IOWriter implements Writer.

type DummyWriterMatcher

type DummyWriterMatcher struct {
	Pathes []string
}

func (*DummyWriterMatcher) FailureMessage

func (matcher *DummyWriterMatcher) FailureMessage(actual interface{}) (message string)

func (*DummyWriterMatcher) Match

func (matcher *DummyWriterMatcher) Match(actual interface{}) (success bool, err error)

func (*DummyWriterMatcher) NegatedFailureMessage

func (matcher *DummyWriterMatcher) NegatedFailureMessage(actual interface{}) (message string)

type FileWriter

type FileWriter struct {
	// contains filtered or unexported fields
}

func NewFileWriter

func NewFileWriter(outputFolder string) FileWriter

func (FileWriter) Write

func (fw FileWriter) Write(filePath string, writerFn func(io.Writer) error) error

type Writer

type Writer interface {
	Write(filePath string, writerFn func(io.Writer) error) error
}

Jump to

Keyboard shortcuts

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