Skip to main content

skip_only_hits

Function skip_only_hits 

Source
pub fn skip_only_hits(base: &str, head: &str) -> Vec<LineHit>
Expand description

Added lines of a test file that add a skip or focus marker.

A marker is the first skip or focus chain on a line, with the first string literal of that line as its title. Markers compare as a multiset, not as line text. So a base marker on a line that the change edits in another place (a callback that becomes async, a new title, a reformat) is not added. An added marker first matches a base marker with the same chain and title, then a base marker with the same chain only. The chain-only match covers a renamed test. It does not apply to a base marker whose title is a plain test or suite call in the head: that skip moved to another test, so the added marker skips a test that ran before.