package main import ( "bytes" "testing" ) func TestCliGreeting(t *testing.T) { buffer := &bytes.Buffer{} HelloFluxFeed(buffer) got := buffer.String() want := FluxGreeting if got != want { t.Errorf("Got %s but wanted %s", got, want) } }