mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Added all the necessary to do GetLanguageByAlias functionality works
This commit is contained in:
@ -53,6 +53,12 @@ const (
|
||||
filenamesGold = "test_files/filenames.gold"
|
||||
filenamesTestTmplPath = "../assets/filenames.go.tmpl"
|
||||
filenamesTestTmplName = "filenames.go.tmpl"
|
||||
|
||||
// Aliases test
|
||||
aliasesTestFile = "test_files/aliases.test.yml"
|
||||
aliasesGold = "test_files/aliases.gold"
|
||||
aliasesTestTmplPath = "../assets/aliases.go.tmpl"
|
||||
aliasesTestTmplName = "aliases.go.tmpl"
|
||||
)
|
||||
|
||||
func TestFromFile(t *testing.T) {
|
||||
@ -128,6 +134,15 @@ func TestFromFile(t *testing.T) {
|
||||
generate: Filenames,
|
||||
wantOut: filenamesGold,
|
||||
},
|
||||
{
|
||||
name: "TestFromFile_Aliases",
|
||||
fileToParse: aliasesTestFile,
|
||||
tmplPath: aliasesTestTmplPath,
|
||||
tmplName: aliasesTestTmplName,
|
||||
commit: commitTest,
|
||||
generate: Aliases,
|
||||
wantOut: aliasesGold,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user