package formatter_test import ( "context" "testing" "gitoa.ru/go-4devs/console/output/formatter" ) func TestNone(t *testing.T) { t.Parallel() ctx := context.Background() none := formatter.None() cases := map[string]string{ "message info": "message info", "message error": "message error", "": "", "body": "body", } for msg, ex := range cases { got := none.Format(ctx, msg) if ex != got { t.Errorf("expect:%#v, got:%#v", ex, got) } } }