mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Implement getting color code for languages
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
This commit is contained in:
@ -80,6 +80,11 @@ const (
|
||||
mimeTypeGold = testDir + "/mimeType.gold"
|
||||
mimeTypeTestTmplPath = assetsDir + "/mimeType.go.tmpl"
|
||||
mimeTypeTestTmplName = "mimeType.go.tmpl"
|
||||
|
||||
// colors test
|
||||
colorsGold = testDir + "/colors.gold"
|
||||
colorsTestTmplPath = assetsDir + "/colors.go.tmpl"
|
||||
colorsTestTmplName = "colors.go.tmpl"
|
||||
)
|
||||
|
||||
type GeneratorTestSuite struct {
|
||||
@ -243,6 +248,16 @@ func (s *GeneratorTestSuite) SetupSuite() {
|
||||
generate: MimeType,
|
||||
wantOut: mimeTypeGold,
|
||||
},
|
||||
{
|
||||
name: "Colors()",
|
||||
fileToParse: filepath.Join(s.tmpLinguist, languagesFile),
|
||||
samplesDir: "",
|
||||
tmplPath: colorsTestTmplPath,
|
||||
tmplName: colorsTestTmplName,
|
||||
commit: commit,
|
||||
generate: Colors,
|
||||
wantOut: colorsGold,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user