Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestExporter ¶
type TestExporter struct {
// contains filtered or unexported fields
}
TestExporter keeps exported metric view data in memory to aid in testing.
func RegisterMetrics ¶
func RegisterMetrics(views ...*view.View) *TestExporter
RegisterMetrics collects data for the given views and reports data to the TestExporter.
func (*TestExporter) ExportView ¶
func (e *TestExporter) ExportView(data *view.Data)
ExportView records the view data.
func (*TestExporter) ValidateMetrics ¶
ValidateMetrics compares the exported view data with the expected metric data.
Click to show internal directories.
Click to hide internal directories.