Skip to content
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

MockCheckedExpectedCall::callToString(): Why are output parameters handled differently than input parameters? #1770

Open
swilli opened this issue Jan 31, 2024 · 0 comments

Comments

@swilli
Copy link

swilli commented Jan 31, 2024

Hi

Currently, we have the following:

for (p = outputParameters_->begin(); p; p = p->next()) {
    str += StringFromFormat("%s %s: <output>", p->getType().asCharString(), p->getName().asCharString());
    if (p->next()) str += ", ";
}

I was wondering, why can this not be handled as an input parameter, by introducing getOutputParameterValueString:

for (p = outputParameters_->begin(); p; p = p->next()) {
    str += StringFromFormat("%s %s: <%s>", p->getType().asCharString(), p->getName().asCharString(), getOutputParameterValueString(p->getName().asCharString()));
    if (p->next())
        str += ", ";
}
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

No branches or pull requests

1 participant