| Conditions | 3 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package localeset |
||
| 8 | func TestParseJsonIntoLang(t *testing.T) { |
||
| 9 | t.Run("Function returns Lang model with needed values", func(test *testing.T) { |
||
| 10 | result := parseJsonIntoTrans("langs/ru.json") |
||
| 11 | |||
| 12 | if result.Ago != "назад" { |
||
| 13 | t.Errorf("Function needs to return model with value назад, but returned %v", result.Ago) |
||
| 14 | } |
||
| 48 |