Skip to content

Let concrete add additional mocks to UtCompositeModel created by the engine #2553

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 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ data class UtClassRefModel(
* - calculated field values (models)
* - mocks for methods with return values
* - [canHaveRedundantOrMissingMocks] flag, which is set to `true` for mocks
* created by fuzzer without knowing which methods will actually be called
* created by:
* - fuzzer which doesn't know which methods will actually be called
* - engine which also doesn't know which methods will actually be
* called during concrete execution that may be only **partially**
* backed up by the symbolic analysis
*
* [fields] contains non-static fields
*/
Expand All @@ -509,7 +513,7 @@ data class UtCompositeModel(
val isMock: Boolean,
val fields: MutableMap<FieldId, UtModel> = mutableMapOf(),
val mocks: MutableMap<ExecutableId, List<UtModel>> = mutableMapOf(),
val canHaveRedundantOrMissingMocks: Boolean = false,
val canHaveRedundantOrMissingMocks: Boolean = true,
) : UtReferenceModel(id, classId) {
//TODO: SAT-891 - rewrite toString() method
override fun toString() = withToStringThreadLocalReentrancyGuard {
Expand Down