This method exists for the only purpose to be redefined by nitunit tests to avoid path diffs.
# Return the mentity path
#
# This method exists for the only purpose to be redefined by nitunit tests
# to avoid path diffs.
private fun test_path(mentity: MEntity): nullable String do
var file = mentity.location.file
if file == null then return null
var base_path = self.mentity.as(not null).location.file.as(not null).filename
return file.filename.replace(base_path, "")
end
src/doc/commands/commands_main.nit:175,2--184,4