Skip to content

Commit

Permalink
trim traces w.r.t. class intervals
Browse files Browse the repository at this point in the history
Reviewed By: williewillus

Differential Revision: D32336953

fbshipit-source-id: fccda83bc7240524f3715a991f3a744ee45c8e22
  • Loading branch information
fahndrich authored and facebook-github-bot committed Nov 12, 2021
1 parent f3ec7a8 commit 35ac941
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 46 deletions.
18 changes: 12 additions & 6 deletions sapp/tests/fake_object_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def precondition(
location=(4, 5, 6),
leaves=None,
reachability=FrameReachability.UNREACHABLE,
preserves_type_context=False,
type_interval_lower=5,
type_interval_upper=7,
):
leaves = leaves or []
filename_record = self.filename(filename)
Expand All @@ -110,9 +113,9 @@ def precondition(
filename_id=filename_record.id,
titos=[],
run_id=self.run_id,
type_interval_lower=5,
type_interval_upper=7,
preserves_type_context=False,
type_interval_lower=type_interval_lower,
type_interval_upper=type_interval_upper,
preserves_type_context=preserves_type_context,
reachability=reachability,
)
if self.graph:
Expand All @@ -132,6 +135,9 @@ def postcondition(
filename="lib/server/posts/response.py",
location=(4, 5, 6),
leaves=None,
preserves_type_context=False,
type_interval_lower=5,
type_interval_upper=7,
):
leaves = leaves or []
filename_record = self.filename(filename)
Expand All @@ -155,9 +161,9 @@ def postcondition(
filename_id=filename_record.id,
titos=[],
run_id=self.run_id,
type_interval_lower=5,
type_interval_upper=7,
preserves_type_context=False,
type_interval_lower=type_interval_lower,
type_interval_upper=type_interval_upper,
preserves_type_context=preserves_type_context,
reachability=FrameReachability.UNREACHABLE,
)
if self.graph:
Expand Down
Loading

0 comments on commit 35ac941

Please sign in to comment.