misery /

Filename Size Date modified Message
28 B
2.8 KB
4.3 KB
3.7 KB
8.9 KB
1.0 KB
5.9 KB
4.2 KB
3.0 KB
15.5 KB
3.2 KB

Run all unit tests:

python -m unittest discover -v

Test coverage:

clear old data: python -m coverage erase
generate info: python -m coverage run -m unittest discover
simple report: python -m coverage report -m
html report: python -m coverage html -d coverage_html

TODO:

  • Rename: 'type' -> '???'

  • return_type=ast.NodeIdentifier('Integer') ??? NodeType!

  • Table.current_indent_level

  • qualifiedIdentifier: module.submodule.Class.Subclass

  • generics

  • varargs

  • var testArray Array[Int](1, 2, 3)

  • qualifiedIdentifier: x.a.c

  • switch expr { case dfgd {} }

  • var myClosure = func() { killAllHumans() }

  • nested funcs

  • pep8, pylint, pyflakes

  • try to use verbose test names:

    def test_that_a_player_cannot_move_into_an_already_occupied_board_cell(self): pass
    def test_corectness_of_verify_win_combinations_3(self): pass
    def test_that_parsed_response_contains_status_key(self): pass
    

Notes:

Print lexems:

lexer.input(input_string);
for tok in lexer:
    my_pretty_print.my_pretty_print(tok)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.