Skip to content

Fix signatures of methods with two arguments - #835

Merged
mristin merged 1 commit into
mainfrom
mristin/Fix-signatures-of-methods-with-two-arguments
Oct 3, 2026
Merged

mristin merged 1 commit into
mainfrom
mristin/Fix-signatures-of-methods-with-two-arguments

Conversation

@mristin

@mristin mristin commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

The C#, Java and TypeScript interfaces rendered the public methods with more than two arguments on multiple lines, with exactly one on a single line, and otherwise asserted that there were no arguments. Hence a method with exactly two arguments failed the assertion. We now split if len(arg_codes) > 1:.

The Go enhancing joined the arguments with , although each already ended with one, rendering low int64,,high int64,. We now join them with new lines.

We test it with Item.is_count_between(self, low, high) in the transpiled_methods meta-model.

The C#, Java and TypeScript interfaces rendered the public methods with
more than two arguments on multiple lines, with exactly one on a single
line, and otherwise asserted that there were no arguments. Hence a
method with exactly two arguments failed the assertion. We now split
``if len(arg_codes) > 1:``.

The Go enhancing joined the arguments with ``,`` although each already
ended with one, rendering ``low int64,,high int64,``. We now join them
with new lines.

We test it with ``Item.is_count_between(self, low, high)`` in
the ``transpiled_methods`` meta-model.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 37153715928

Coverage increased (+0.02%) to 90.12%

Details

  • Coverage increased (+0.02%) from the base build.
  • Patch coverage: 4 of 4 lines across 4 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 50204
Covered Lines: 45244
Line Coverage: 90.12%
Coverage Strength: 2.7 hits per line

💛 - Coveralls

@mristin
mristin merged commit b69721b into main Oct 3, 2026
5 checks passed
@mristin
mristin deleted the mristin/Fix-signatures-of-methods-with-two-arguments branch October 3, 2026 21:25
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.

2 participants