Example #1
0
    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))
Example #2
0
    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))
Example #3
0
    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))
Example #4
0
    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))