func (c TestCase) Name() string {
	return c.PayloadName + ":" + c.IPTag
}
Name returns the name of the test case, relative to the test name.
package pipelinetest
import (
	"bytes"
	"context"
	"io/ioutil"
	"log"
	"net/http"
	"net/http/httptest"
	"os"
	"path/filepath"
	"strings"
	"testing"
	"time"
	"github.com/BurntSushi/toml"
	"github.com/google/nel-collector/pkg/collector"
	"github.com/kylelemons/godebug/diff"
)
type SimulatedClock struct {
	CurrentTime time.Time
}
func NewSimulatedClock() *SimulatedClock {
	return &SimulatedClock{CurrentTime: time.Unix(0, 0).UTC()}
}
func (c SimulatedClock) Now() time.Time {
	return c.CurrentTime
}
func NewTestConfigPipeline(configString string) *collector.Pipeline {
	p := collector.NewTestPipeline(NewSimulatedClock())
	err := p.LoadFromConfig(context.Background(), []byte(configString))
	if err != nil {
		log.Fatal(err)
		return nil
	}
	return p
}
type PipelineTest struct {
	TestName string
	Pipeline *collector.Pipeline
	OutputExtension string
	Testdata TestdataLoader
	URL string
}
type TestCase struct {
	TestName string
	PayloadName string
	IPTag string
	OutputExtension string
}
func (c TestCase) BaseInputFilename() string {
	return c.PayloadName + ".json"
}
func (c TestCase) BaseOutputFilename() string {
	return c.PayloadName + "." + c.IPTag + c.OutputExtension
}