Change syntax for jacoco filter wildcard params.
originally: .* -> /**/*.class now: .* -> /*.class .** -> /**/*.class Also add NinjaAndShellEscape to allow filtering inner classes with $ in the name. Test: unittests. Bug: b/71889972 Merged-In: Ifb8d7daa22bee02346885171edb15180af18f0de Change-Id: Ifb8d7daa22bee02346885171edb15180af18f0de (cherry picked from commit c61066684d5c8ddf600af602852c32fce6e6c6f4)
This commit is contained in:
@@ -33,13 +33,23 @@ func TestJacocoFilterToSpecs(t *testing.T) {
|
||||
{
|
||||
name: "package wildcard",
|
||||
in: "package.*",
|
||||
out: "package/*.class",
|
||||
},
|
||||
{
|
||||
name: "package recursive wildcard",
|
||||
in: "package.**",
|
||||
out: "package/**/*.class",
|
||||
},
|
||||
{
|
||||
name: "all wildcard",
|
||||
in: "*",
|
||||
name: "recursive wildcard only",
|
||||
in: "**",
|
||||
out: "**/*.class",
|
||||
},
|
||||
{
|
||||
name: "single wildcard only",
|
||||
in: "*",
|
||||
out: "*.class",
|
||||
},
|
||||
}
|
||||
|
||||
for _, testCase := range testCases {
|
||||
|
Reference in New Issue
Block a user