package testonly
import "github.com/google/monologue/incident/testonly"
Package testonly contains fakes for use in tests that interact with incident reporting.
Index ¶
- type FakeReporter
- func (f *FakeReporter) LogUpdate(ctx context.Context, baseURL, summary, fullURL, details string)
- func (f *FakeReporter) LogUpdatef(ctx context.Context, baseURL, summary, fullURL, detailsFmt string, args ...interface{})
- func (f *FakeReporter) LogViolation(ctx context.Context, baseURL, summary, fullURL, details string)
- func (f *FakeReporter) LogViolationf(ctx context.Context, baseURL, summary, fullURL, detailsFmt string, args ...interface{})
- type Report
Types ¶
type FakeReporter ¶
FakeReporter sends incident reports to its Reports channel.
func (*FakeReporter) LogUpdate ¶
func (f *FakeReporter) LogUpdate(ctx context.Context, baseURL, summary, fullURL, details string)
LogUpdate sends an incident report to the FakeReporter's Updates channel.
func (*FakeReporter) LogUpdatef ¶
func (f *FakeReporter) LogUpdatef(ctx context.Context, baseURL, summary, fullURL, detailsFmt string, args ...interface{})
LogUpdatef sends an incident report to the FakeReporter's Updates channel, formatting parameters along the way.
func (*FakeReporter) LogViolation ¶
func (f *FakeReporter) LogViolation(ctx context.Context, baseURL, summary, fullURL, details string)
LogViolation sends an incident report to the FakeReporter's Violations channel.
func (*FakeReporter) LogViolationf ¶
func (f *FakeReporter) LogViolationf(ctx context.Context, baseURL, summary, fullURL, detailsFmt string, args ...interface{})
LogViolationf sends an incident report to the FakeReporter's Violations channel, formatting parameters along the way.
type Report ¶
Report contains all of the information submitted when creating an incident report.
Source Files ¶
- Version
- v0.0.0-20230315160450-1dc62842925e (latest)
- Published
- Mar 15, 2023
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 8 hours ago –
Tools for package owners.