package
0.1.5
Repository: https://github.com/modernice/jotbot.git
Documentation: pkg.go.dev

# Functions

NewMockMinifier creates a new instance of MockMinifier.
NewMockMinifierFrom creates a new mock of the Minifier interface using an existing Minifier's Minify method as the default behavior for the mock's Minify function.
NewMockService constructs a new mock implementation of the Service interface for testing purposes.
NewMockServiceFrom creates a new instance of MockService by wrapping the provided generate.Service, allowing the underlying service's GenerateDoc method to be used as the default behavior for the mock's GenerateDoc method.
NewStrictMockMinifier creates a new instance of a mock minifier that panics when its Minify method is called without an explicit expectation being set.
NewStrictMockService creates and returns a new instance of MockService with a strict default behavior for its GenerateDoc method.

# Structs

MinifierMinifyFunc represents the functionality to compress or transform a slice of bytes into a potentially smaller or optimized slice, along with an error that may occur during the process.
MinifierMinifyFuncCall represents a record of a single invocation of a minification process, including the input data, the resulting minified data, and any error that occurred during the process.
MockMinifier represents a test double for mimicking the behavior of a minification service.
MockService provides a mock implementation of the [generate.Service] interface for testing purposes.
ServiceGenerateDocFunc encapsulates a behavior to generate a document based on the provided context, returning the document as a string along with any error that occurred during generation.
ServiceGenerateDocFuncCall represents a record of an invocation to generate a document within a given context, including the arguments provided, and the results produced.