def test_stack_usage_line2(self): line = "puncover.c:8:43:dynamic_stack2 16 dynamic" c = Collector() c.symbols = {"123": { "base_file": "puncover.c", "line": 8, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line_cpp_constructor(self): line = "WString.cpp:82:1:String::String(unsigned int, unsigned char) 32 static" c = Collector(None) c.symbols = {"123": { "base_file": "WString.cpp", "line": 82, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line_header(self): line = "ILI9341_t3.h:312:15:void ILI9341_t3::updateDisplayClip() 16 static" c = Collector(None) c.symbols = {"123": { "base_file": "ILI9341_t3.h", "line": 312, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line_cpp_constructor(self): line = "WString.cpp:82:1:String::String(unsigned int, unsigned char) 32 static" c = Collector(None) c.symbols = {"123": { "base_file": "WString.cpp", "line": 82, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line_header(self): line = "ILI9341_t3.h:312:15:void ILI9341_t3::updateDisplayClip() 16 static" c = Collector(None) c.symbols = {"123": { "base_file": "ILI9341_t3.h", "line": 312, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line2(self): line = "puncover.c:8:43:dynamic_stack2 16 dynamic" c = Collector(None) c.symbols = {"123": { "base_file": "puncover.c", "line": 8, }} self.assertTrue(c.parse_stack_usage_line(line))
def test_stack_usage_line(self): line = "puncover.c:14:40:0 16 dynamic,bounded" c = Collector() c.symbols = {"123": { "base_file": "puncover.c", "line": 14, }} self.assertTrue(c.parse_stack_usage_line(line)) self.assertEqual(16, c.symbols["123"]["stack_size"]) self.assertEqual("dynamic,bounded", c.symbols["123"]["stack_qualifiers"])
def test_stack_usage_line_cpp_correct_line(self): line = "Print.cpp:34:8:virtual size_t Print::write(const uint8_t*, size_t) 24 static" c = Collector(None) c.symbols = {"123": { "base_file": "Print.cpp", "line": 34, }} self.assertTrue(c.parse_stack_usage_line(line)) self.assertEqual(24, c.symbols["123"]["stack_size"]) self.assertEqual("static", c.symbols["123"]["stack_qualifiers"])
def test_stack_usage_line_cpp_correct_line(self): line = "Print.cpp:34:8:virtual size_t Print::write(const uint8_t*, size_t) 24 static" c = Collector(None) c.symbols = {"123": { "base_file": "Print.cpp", "line": 34, }} self.assertTrue(c.parse_stack_usage_line(line)) self.assertEqual(24, c.symbols["123"]["stack_size"]) self.assertEqual("static", c.symbols["123"]["stack_qualifiers"])
def test_stack_usage_line(self): line = "puncover.c:14:40:0 16 dynamic,bounded" c = Collector(None) c.symbols = {"123": { "base_file": "puncover.c", "line": 14, }} self.assertTrue(c.parse_stack_usage_line(line)) self.assertEqual(16, c.symbols["123"]["stack_size"]) self.assertEqual("dynamic,bounded", c.symbols["123"]["stack_qualifiers"])