Actions: facebook/errpy
Actions
Showing runs from all workflows
86 workflow runs
86 workflow runs
compare_recovered_ast_many
method to use a separate check_vs_expects_file
method which wraps up the logic for comparing the output of a test vs an expected output committed to disk.
Three things can happen with expect tests:
- If there is no expected results already then this is created using the obtained results and the test fails.
- If the two test outputs differ (obtained and expected) then a new expected_new
fil...
cargo vendor and commit
#24:
Commit 9b95b27
pushed
by
facebook-github-bot
Str
or ByteStr
) to denote the prefix.
Realistically, the AST will include only vanilla strings or byte string (denoted with a b prefix). e.g.
message = b'byte string'
resolves to:
```
Module(body=[Assign(targets=[Name(id='message', ctx=Store(), lineno=1, col_offset=0, end_lineno=1, end_co...
cargo vendor and commit
#19:
Commit ce71ad2
pushed
by
facebook-github-bot
string_prefix
into string_helpers
Differential Revision: D44713894
fbshipit-source-id: 365066a7c794efc883f6dd7aa54db9278b637d3b
cargo vendor and commit
#18:
Commit 71fccf4
pushed
by
facebook-github-bot
categorize_string
which is used in order to centralise and correctly implement the logic for determining if a string is a raw, byte, format or unicode string from its prefix or an appropriate combination thereof.
Note that we still have a way to go with the cleanup of the string implementation in ERRPY but this is a decent step in the path.
Reviewed By: stroxler
Differential Revision: D44682689...
cargo vendor and commit
#17:
Commit 40876e0
pushed
by
facebook-github-bot
"""""""
Text \
Text
"""""""
'''\\
'''
Reviewed By: jasontatton
Differential Revision: D44659843
fbshipit-source-id: 700a273a467edc5b1aad3362dbf0a829d11b76ac
cargo vendor and commit
#16:
Commit bb4ff89
pushed
by
facebook-github-bot
Str
for both byte and non-byte strings. The consuming client (i.e. Pyre) then has to figure out if it's a byte or normal string based on the perfix of the String. This is not a very elegant way of doing things so here we introduce a new ByteStr
type.
Note that we are still persisting the prefix (e.g. b
) on the strings and we are not correctly handleing the different variants of prefix listed [here](https://do...
cargo vendor and commit
#15:
Commit 9e5d1b8
pushed
by
facebook-github-bot
if True:
f"""
{
a}"""
f"""something{(
here
)}and there"""
Reviewed By: jasontatton
Differential Revision: D44626255
fbshipit-source-id: 291d02e54028bbf5d57015344e34443aced2286e
cargo vendor and commit
#14:
Commit a856dec
pushed
by
facebook-github-bot