Skip to content

Commit

Permalink
more tests for the updated java palette
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderEnder committed Jun 27, 2020
1 parent 96992c0 commit 145ac7c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/flamegraph/color/palettes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,34 @@ mod tests {
input: String::from("some:thing"),
output: BasicPalette::Red,
},
TestData {
input: String::from("scala.tools.nsc.Global$Run.compile"),
output: BasicPalette::Green,
},
TestData {
input: String::from("sbt.execute.work"),
output: BasicPalette::Green,
},
TestData {
input: String::from("org.scalatest.Suit.run"),
output: BasicPalette::Green,
},
TestData {
input: String::from("Compile"),
output: BasicPalette::Green,
},
TestData {
input: String::from("-[test]"),
output: BasicPalette::Yellow,
},
TestData {
input: String::from("+[test]"),
output: BasicPalette::Yellow,
},
TestData {
input: String::from("[test.event]"),
output: BasicPalette::Red,
},
];

for item in test_names.iter() {
Expand Down

0 comments on commit 145ac7c

Please sign in to comment.