You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected vs actual behavior
The TIM Improves Merging project found that crosshair could not generate two inputs to cover each branch of the following function (see additional discussion in the report PDF). Here, we see only the first branch is covered:
(I'm self-reporting and self-answering here, for the benefit of future CrossHair users)
In order to generate None CrossHair demands that the type have the Optional[] wrapper. This might be a common sort of stumbling block - mypy only recently made --no-implicit-optional the default behavior.
Expected vs actual behavior
The TIM Improves Merging project found that crosshair could not generate two inputs to cover each branch of the following function (see additional discussion in the report PDF). Here, we see only the first branch is covered:
One might expect to see inputs that cover both paths in the
if
statement.The text was updated successfully, but these errors were encountered: