tools/android/elf_compression/test/compression_script_test.py
def testSegmentContains(self):
    """Tests for SegmentContains method of the script."""
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 1))
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 2))
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 3))
    self.assertTrue(compress_section.SegmentContains(0, 3, 1, 2))
    self.assertTrue(compress_section.SegmentContains(0, 3, 1, 3))

    self.assertFalse(compress_section.SegmentContains(0, 1, 0, 3))
    self.assertFalse(compress_section.SegmentContains(0, 3, 0, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 2))
    self.assertFalse(compress_section.SegmentContains(0, 3, 2, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, 3, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 0))
Tests for SegmentContains method of the script.
Tests for SegmentContains method of the script.
Tests for SegmentContains method of the script .
def testSegmentContains(self):
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 1))
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 2))
    self.assertTrue(compress_section.SegmentContains(0, 3, 0, 3))
    self.assertTrue(compress_section.SegmentContains(0, 3, 1, 2))
    self.assertTrue(compress_section.SegmentContains(0, 3, 1, 3))
    self.assertFalse(compress_section.SegmentContains(0, 1, 0, 3))
    self.assertFalse(compress_section.SegmentContains(0, 3, 0, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 2))
    self.assertFalse(compress_section.SegmentContains(0, 3, 2, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, 3, 4))
    self.assertFalse(compress_section.SegmentContains(0, 3, -1, 0))
def testSegmentContains ( self ) : self . assertTrue ( compress_section . SegmentContains ( 0 , 3 , 0 , 1 ) ) self . assertTrue ( compress_section . SegmentContains ( 0 , 3 , 0 , 2 ) ) self . assertTrue ( compress_section . SegmentContains ( 0 , 3 , 0 , 3 ) ) self . assertTrue ( compress_section . SegmentContains ( 0 , 3 , 1 , 2 ) ) self . assertTrue ( compress_section . SegmentContains ( 0 , 3 , 1 , 3 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 1 , 0 , 3 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , 0 , 4 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , - 1 , 4 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , - 1 , 2 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , 2 , 4 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , 3 , 4 ) ) self . assertFalse ( compress_section . SegmentContains ( 0 , 3 , - 1 , 0 ) )
Tests for SegmentContains method of the script.
Tests for SegmentContains method of the script .
"""Tests for SegmentContains method of the script."""
self