alepez / vim-gtest

Vim plugin to quickly select and run GoogleTest asyncronously.
64 stars 12 forks source link

Narrower filter for parameterized tests #19

Closed bbannier closed 5 years ago

bbannier commented 5 years ago

The handling of parameterized tests introduced in 7fb016c794f was not narrow enough. With a parameterized test Foo.Bar under the under the cursor it would not only match e.g., 0/Foo.Bar/0 but also 0/LeFoo.Bar/0 or 0/Foo.BarBaz/0.

With this patch we explicitly include the slashes in the generated filter expression (e.g., filter for */Foo.Bar/* instead of *Foo.Bar*).

bbannier commented 5 years ago

Is this something you'd be interested in for vim-gtest @alepez?

alepez commented 5 years ago

Hi @bbannier, I'm very sorry for the late reply. Thank your for the PR.