INNER CODE UNIT · Go

TestTierStringAndGlyph

Bharath-code/git-scope · internal/attention/attention_test.go:78

func TestTierStringAndGlyph(t *testing.T) {
	cases := []struct {
		t     Tier
		str   string
		glyph string
	}{
		{Clean, "CLEAN", "✓"},
		{Watch, "WATCH", "●"},
		{Action, "ACTION", "▲"},
	}
	for _, c := range cases {
		if c.t.String() != c.str {
			t.Errorf("String() = %q, want %q", c.t.String(), c.str)
		}
		if c.t.Glyph() != c.glyph {
			t.Errorf("Glyph() = %q, want %q", c.t.Glyph(), c.glyph)
		}
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…