package plugins import ( "testing" ) func TestBeer(t *testing.T) { beer := &Beer{} b, err := beer.get("oskar blues") if err != nil { t.Errorf("%+v\n", err) } if b.Nhits == 0 { t.Errorf("Expected 7 results; got %d\n", b.Nhits) } }