def test_omit_api(self): self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', []), 'arm', 9, False)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', ['introduced=9']), 'arm', 9, False)) self.assertTrue( gsl.should_omit_symbol(gsl.Symbol('foo', ['introduced=14']), 'arm', 9, False))
def test_omit_vndk(self): self.assertTrue( gsl.should_omit_symbol(gsl.Symbol('foo', ['vndk']), 'arm', 9, False)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', []), 'arm', 9, True)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', ['vndk']), 'arm', 9, True))
def test_omit_arch(self): self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', []), 'arm', 9, False)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', ['arm']), 'arm', 9, False)) self.assertTrue( gsl.should_omit_symbol(gsl.Symbol('foo', ['x86']), 'arm', 9, False))
def test_omit_apex(self): self.assertTrue( gsl.should_omit_symbol(gsl.Symbol('foo', ['apex']), 'arm', 9, False, False)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', []), 'arm', 9, False, True)) self.assertFalse( gsl.should_omit_symbol(gsl.Symbol('foo', ['apex']), 'arm', 9, False, True))