Conditions | 3 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package utils |
||
7 | func TestGetPostsFromHTML(t *testing.T) { |
||
8 | t.Run("returns links", func(t *testing.T) { |
||
9 | fileText := FileGetContents("../storage/test_files/example") |
||
10 | result := GetPostsFromHTML(&fileText) |
||
11 | |||
12 | if len(result) != 8 { |
||
13 | t.Error("GetLinksFromHTML must return slice with 8 items") |
||
14 | } |
||
50 |