Skip to content

Tests for constant propagation of string constructors #5110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

danpoe
Copy link
Contributor

@danpoe danpoe commented Sep 16, 2019

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

Rename the directories to follow the existing naming convention
Add entries for StringBuilder(CharSequence) and StringBuilder(int capacity) to
the string library preprocessing
Require >= 2 arguments instead of 2 arguments. This enables the modelling of
methods that result in the empty string but take arguments that are ignored.
…nstructors

Add regression tests that test the constructors that take string types or
primitive types.
@codecov-io
Copy link

Codecov Report

Merging #5110 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5110      +/-   ##
===========================================
+ Coverage    69.71%   69.71%   +<.01%     
===========================================
  Files         1322     1322              
  Lines       109429   109432       +3     
===========================================
+ Hits         76287    76290       +3     
  Misses       33142    33142
Impacted Files Coverage Δ
src/goto-symex/goto_symex.cpp 99.44% <ø> (ø) ⬆️
...c/java_bytecode/java_string_library_preprocess.cpp 96.83% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d74a8d8...b40e637. Read the comment docs.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: b40e637).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/127818598

@danpoe danpoe merged commit 23e8572 into diffblue:develop Sep 23, 2019
@danpoe danpoe deleted the feature/string-constructors branch June 2, 2020 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants