fn conditional_sources( source: &CommandSource, expected: bool, matches: bool, ) -> Vec<CommandSource>