INNER CODE UNIT · Go

TestToStructuredBranchList

chriswalz/bit · cmd/cmd_test.go:58

func TestToStructuredBranchList(t *testing.T) {
	expects :=
		[]struct {
			raw                     string
			expectedFirstBranchName string
			expectedAuthor          string
			expectedRelativeDate    string
			expectedAbsoluteDate    string
		}{
			{
				`'Fri Sep 11 01:19:12 2020 -0400; John Doe; bf84c09; origin/other-branch; (3 days ago)'
'Fri Sep 11 01:19:12 2020 -0400; John Doe; bf84c09; origin/master; (3 days ago)'`,
				"origin/other-branch",
				"John Doe",
				"3 days ago",
				"Fri Sep 11 01:19:12 2020 -0400",
			},
			{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…