| Conditions | 1 | 
| Total Lines | 21 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | package dictionary_test | ||
| 11 | func TestAbsolutePathsGenerator(t *testing.T) { | ||
| 12 | t.Parallel() | ||
| 13 | |||
| 14 | 	b := &bytes.Buffer{} | ||
| 15 | |||
| 16 | dictionaryGenerator := dictionary.NewGenerator(b) | ||
| 17 | |||
| 18 | err := dictionaryGenerator.GenerateDictionaryFrom( | ||
| 19 | "./testdata/directory_to_generate_dictionary", | ||
| 20 | true, | ||
| 21 | ) | ||
| 22 | assert.NoError(t, err) | ||
| 23 | |||
| 24 | expectedOutput := `testdata/directory_to_generate_dictionary/myfile.php | ||
| 25 | testdata/directory_to_generate_dictionary/subfolder/image.jpg | ||
| 26 | testdata/directory_to_generate_dictionary/subfolder/image2.gif | ||
| 27 | testdata/directory_to_generate_dictionary/subfolder/subsubfolder/myfile.php | ||
| 28 | testdata/directory_to_generate_dictionary/subfolder/subsubfolder/myfile2.php | ||
| 29 | ` | ||
| 30 | |||
| 31 | assert.Equal(t, expectedOutput, b.String()) | ||
| 32 | } | ||
| 72 |