Skip to main content

same_code

Function same_code 

Source
pub fn same_code(base: &str, head: &str, path: &Path) -> bool
Expand description

true when base and head — the module at path before and after an edit — compile to the same JavaScript. A side that fails to parse is not equal: co-change then holds the file to its colocated test rather than skip a module it couldn’t read.