| Conditions | 3 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package localeset |
||
| 36 | func TestGetFileContent(t *testing.T) { |
||
| 37 | t.Run("getFileContent returns content of the file", func(test *testing.T) { |
||
| 38 | result := getFileContent("langs/en.json") |
||
| 39 | |||
| 40 | var js json.RawMessage |
||
| 41 | err := json.Unmarshal(result, &js) |
||
| 42 | |||
| 43 | if err != nil { |
||
| 44 | t.Errorf("Function getFileContent must return JSON object but %s returned", string(result)) |
||
| 45 | } |
||
| 48 |