Skip to content

Commit 56e73da

Browse files
committed
Validate fake tests
1 parent 4c13bca commit 56e73da

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

codegen/fake.go

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/fake_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ contract FakeSimpleView {
5555
5656
5757
58+
5859
uint256 private _retuint256GetValue0;
5960
6061
function fakeSetGetValue(uint256 retuint256GetValue0) public {
@@ -154,6 +155,7 @@ contract FakeMultiOutput {
154155
155156
156157
158+
157159
uint256 private _uint256GetValuesa;
158160
bool private _boolGetValuesb;
159161
@@ -204,6 +206,7 @@ contract FakeWithInputs {
204206
205207
206208
209+
207210
uint256 private _uint256Calculateresult;
208211
209212
function fakeSetCalculate(uint256 uint256Calculateresult) public {
@@ -212,7 +215,7 @@ contract FakeWithInputs {
212215
}
213216
214217
215-
function calculate(uint256, uint256) public view returns (uint256) {
218+
function calculate(x uint256, y uint256) public view returns (uint256) {
216219
return (
217220
218221
@@ -287,6 +290,7 @@ contract FakeMemoryParams {
287290
288291
289292
293+
290294
291295
function setData(string memory, uint256[] memory) public view {
292296
@@ -389,6 +393,7 @@ contract FakeNoOutputs {
389393
390394
391395
396+
392397
393398
function doSomething() public view {
394399
@@ -507,7 +512,7 @@ contract FakeStructDef {
507512
508513
struct Data {
509514
uint256 id;
510-
(string) nested;
515+
string nested;
511516
}
512517
513518
@@ -588,4 +593,4 @@ func TestFakeHelperFunctions(t *testing.T) {
588593
// Helper function for string pointers
589594
func stringPtr(s string) *string {
590595
return &s
591-
}
596+
}

0 commit comments

Comments
 (0)