| Conditions | 1 |
| Total Lines | 23 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package dictionary_test |
||
| 34 | func TestFilenamePathsGenerator(t *testing.T) { |
||
| 35 | t.Parallel() |
||
| 36 | |||
| 37 | b := &bytes.Buffer{} |
||
| 38 | |||
| 39 | dictionaryGenerator := dictionary.NewGenerator(b) |
||
| 40 | |||
| 41 | err := dictionaryGenerator.GenerateDictionaryFrom( |
||
| 42 | "testdata/directory_to_generate_dictionary", |
||
| 43 | false, |
||
| 44 | ) |
||
| 45 | assert.NoError(t, err) |
||
| 46 | |||
| 47 | expectedOutput := `directory_to_generate_dictionary |
||
| 48 | myfile.php |
||
| 49 | subfolder |
||
| 50 | image.jpg |
||
| 51 | image2.gif |
||
| 52 | subsubfolder |
||
| 53 | myfile2.php |
||
| 54 | ` |
||
| 55 | |||
| 56 | assert.Equal(t, expectedOutput, b.String()) |
||
| 57 | } |
||
| 72 |