Demonstration of the ViM plugin `vim-umbrella` showing inline code coverage in Go programs

size_test.go 367B

    package size import "testing" type Test struct { in int out string } var tests = []Test { { -1, "negative" }, { 5, "small" }, } func TestSize(t *testing.T) { for i, test := range tests { size := Size(test.in) if size != test.out { t.Errorf("#%d: Size(%d)=%s; want %s", i, test.in, size, test.out) } } }