Debian Codegraph @

test/products_test.go

raw symbols SCIP
1 package test
2
3 import (
4 "testing"
5
6 "github.com/icrowley/fake"
7 )
8
9 func TestProducts(t *testing.T) {
10 for _, lang := range fake.GetLangs() {
11 fake.SetLang(lang)
12
13 v := fake.Brand()
14 if v == "" {
15 t.Errorf("Brand failed with lang %s", lang)
16 }
17
18 v = fake.ProductName()
19 if v == "" {
20 t.Errorf("ProductName failed with lang %s", lang)
21 }
22
23 v = fake.Product()
24 if v == "" {
25 t.Errorf("Product failed with lang %s", lang)
26 }
27
28 v = fake.Model()
29 if v == "" {
30 t.Errorf("Model failed with lang %s", lang)
31 }
32 }
33 }