Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Num BinOpMult Str Num For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num BinOpMult Str Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num NameLoad For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMult Call NameLoad Str Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMult Call NameLoad Str Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num BinOpMult Str Num Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMult Call NameLoad Str Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad BinOpMult ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMult ListLoad BinOpMult ListLoad NameLoad Num Num For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Num NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd BinOpMult Str Num BinOpMult Str Num BinOpMult Str Num SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult Str Num SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest unittest.mock Mock unittest.mock patch pico8.gfx gfx pico8.map map TestMap N/A N/A unittest TestCase N/A testGetCell N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A N/A N/A m _data N/A 0 128 N/A 8 N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A self assertEqual i N/A N/A m get_cell N/A i N/A 16 j 0 N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A self assertEqual 0 N/A N/A m get_cell N/A i N/A 16 j 1 N/A testGetCellSharedMem N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A N/A m _gfx N/A N/A N/A gfx Gfx empty N/A N/A N/A N/A m _gfx _data N/A 4096 4112 N/A 8 N/A i N/A range 16 N/A N/A N/A N/A self assertEqual i N/A N/A m get_cell i 32 N/A testSetCell N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A m set_cell N/A i N/A 16 j 0 i N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A self assertEqual i N/A N/A m get_cell N/A i N/A 16 j 0 N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A self assertEqual 0 N/A N/A m get_cell N/A i N/A 16 j 1 N/A testGetRectTiles N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A m set_cell N/A i N/A 16 j 0 i N/A tile_rect N/A N/A m get_rect_tiles 2 0 width 8 height 2 N/A N/A N/A self assertEqual 2 N/A len tile_rect N/A N/A N/A self assertEqual 8 N/A len N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A bytearray N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A N/A bytearray 8 N/A tile_rect N/A 1 N/A testGetRectTilesOffEdge N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A m set_cell N/A i N/A 16 j 0 i N/A tile_rect N/A N/A m get_rect_tiles 124 0 width 8 height 2 N/A N/A N/A self assertEqual 2 N/A len tile_rect N/A N/A N/A self assertEqual 8 N/A len N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A bytearray N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A N/A bytearray 8 N/A tile_rect N/A 1 N/A testGetRectSharedMem N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A N/A m _gfx N/A N/A N/A gfx Gfx empty N/A N/A N/A N/A m _gfx _data N/A 4096 4112 N/A 8 N/A tile_rect N/A N/A m get_rect_tiles 2 32 width 8 height 2 N/A N/A N/A self assertEqual 2 N/A len tile_rect N/A N/A N/A self assertEqual 8 N/A len N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A bytearray N/A tile_rect N/A 0 N/A N/A N/A self assertEqual N/A N/A bytearray 8 N/A tile_rect N/A 1 N/A testSetRectTiles N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A N/A m _gfx N/A N/A N/A gfx Gfx empty N/A N/A N/A m set_rect_tiles N/A N/A N/A N/A 1 4 3 2 3 N/A result N/A N/A m get_rect_tiles 0 0 width 7 height 7 N/A N/A N/A self assertEqual N/A N/A bytearray N/A bytearray N/A bytearray N/A bytearray N/A bytearray N/A bytearray N/A bytearray result N/A testGetRectPixels N/A N/A self N/A N/A N/A m N/A N/A N/A map Map empty N/A N/A m _gfx N/A N/A N/A gfx Gfx empty N/A i N/A range 16 N/A N/A N/A N/A N/A m _gfx set_sprite i N/A N/A N/A N/A i 8 8 N/A i N/A range 16 N/A N/A j N/A range 8 N/A N/A N/A N/A m set_cell N/A i N/A 16 j 0 i N/A pixels N/A N/A m get_rect_pixels 2 0 width 3 height 2 N/A N/A N/A self assertEqual 16 N/A len pixels N/A N/A N/A self assertEqual 24 N/A len N/A pixels N/A 0 N/A i N/A range 0 8 N/A N/A N/A N/A self assertEqual N/A bytearray N/A N/A N/A 8 N/A 8 N/A 8 N/A pixels N/A i N/A i N/A range 8 16 N/A N/A N/A N/A self assertEqual N/A bytearray N/A 24 N/A pixels N/A i N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main