def _ReplaceCompilerTester(compiler, language): to_removes = [[], ['/usr/bin/ccache'], ['some_command', 'another_command']] expected = ['-foo', '-bar'] for to_remove in to_removes: eq_([compiler, '-x', language] + expected, flags._CompilerToLanguageFlag(to_remove + [compiler] + expected))
def _ReplaceCompilerTester( compiler, language ): to_removes = [ [], [ '/usr/bin/ccache' ], [ 'some_command', 'another_command' ] ] expected = [ '-foo', '-bar' ] for to_remove in to_removes: eq_( [ compiler, '-x', language ] + expected, flags._CompilerToLanguageFlag( to_remove + [ compiler ] + expected ) )
def CompilerToLanguageFlag_Passthrough_test(): eq_( [ '-foo', '-bar' ], flags._CompilerToLanguageFlag( [ '-foo', '-bar' ] ) )
def CompilerToLanguageFlag_Passthrough_test(): eq_(['-foo', '-bar'], flags._CompilerToLanguageFlag(['-foo', '-bar']))