INNER CODE UNIT · Go

TestBatchCreateVersionsWithoutKindHeaders

miniscruff/changie · cmd/batch_test.go:569

func TestBatchCreateVersionsWithoutKindHeaders(t *testing.T) {
	cfg := batchTestConfig()
	cfg.KindFormat = ""
	cfg.ChangeFormat = "* {{.Body}} ({{.Kind}})"

	var builder strings.Builder

	batch := NewBatch(time.Now, core.NewTemplateCache())
	batch.config = cfg
	batch.writer = &builder

	changes := []core.Change{
		{Body: "w", Kind: "added"},
		{Body: "x", Kind: "added"},
		{Body: "y", Kind: "removed"},
		{Body: "z", Kind: "removed"},
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…