INNER CODE UNIT · Go
TestBatchErrorBadVersionFormat
miniscruff/changie · cmd/batch_test.go:487
func TestBatchErrorBadVersionFormat(t *testing.T) {
cfg := batchTestConfig()
cfg.VersionFormat = "{{bad.format}"
then.WithTempDirConfig(t, cfg)
batch := NewBatch(time.Now, core.NewTemplateCache())
writeChangeFile(t, cfg, &core.Change{Kind: "removed", Body: "C"})
err := batch.Run(batch.Command, []string{"v0.11.0"})
then.NotNil(t, err)
}
func TestBatchErrorBadKindFormat(t *testing.T) {
cfg := batchTestConfig()
cfg.KindFormat = "bad {{...buh}}"
batch := NewBatch(time.Now, core.NewTemplateCache())