forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[verifier] Migrate entry_point tests (MystenLabs#2014)
- Migrated to expected output tests
- Loading branch information
Showing
19 changed files
with
205 additions
and
481 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...tional-tests/transactional-tests/tests/entry_points/generic_and_generic_object_params.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-16: | ||
created: object(103) | ||
written: object(102) |
16 changes: 16 additions & 0 deletions
16
...ional-tests/transactional-tests/tests/entry_points/generic_and_generic_object_params.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.ID; | ||
import 0x2.TxContext; | ||
struct Obj<T> has key { | ||
id: ID.VersionedID, | ||
} | ||
public(script) foo<T0: key, T1: store>(l0: T0, l1: Self.Obj<T1>, c: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...nsactional-tests/transactional-tests/tests/entry_points/generic_param_after_primitive.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-16: | ||
created: object(103) | ||
written: object(102) |
16 changes: 16 additions & 0 deletions
16
...sactional-tests/transactional-tests/tests/entry_points/generic_param_after_primitive.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.ID; | ||
import 0x2.TxContext; | ||
struct Obj has key { | ||
id: ID.VersionedID, | ||
} | ||
public(script) foo<T>(l0: Self.Obj, l1: u64, l2: T, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...ransactional-tests/transactional-tests/tests/entry_points/nested_generic_vector_param.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-13: | ||
created: object(103) | ||
written: object(102) |
13 changes: 13 additions & 0 deletions
13
...ansactional-tests/transactional-tests/tests/entry_points/nested_generic_vector_param.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
|
||
public(script) foo<T>(l: vector<vector<T>>, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...actional-tests/transactional-tests/tests/entry_points/nested_key_generic_vector_param.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-13: | ||
created: object(103) | ||
written: object(102) |
13 changes: 13 additions & 0 deletions
13
...ctional-tests/transactional-tests/tests/entry_points/nested_key_generic_vector_param.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
|
||
public(script) foo<T: key>(l: vector<vector<T>>, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...sui-verifier-transactional-tests/transactional-tests/tests/entry_points/return_values.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
processed 4 tasks | ||
|
||
task 0 'publish'. lines 4-11: | ||
Error: Failed to verify the Move module, reason: "Entry function foo cannot have return values". | ||
|
||
task 1 'publish'. lines 13-20: | ||
Error: Failed to verify the Move module, reason: "Entry function foo cannot have return values". | ||
|
||
task 2 'publish'. lines 22-29: | ||
Error: Failed to verify the Move module, reason: "Entry function foo cannot have return values". | ||
|
||
task 3 'publish'. lines 32-39: | ||
Error: Failed to verify the Move module, reason: "Entry function foo cannot have return values". |
39 changes: 39 additions & 0 deletions
39
...ui-verifier-transactional-tests/transactional-tests/tests/entry_points/return_values.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
public(script) foo(ctx: &mut TxContext.TxContext): u64 { | ||
label l0: | ||
abort 0; | ||
} | ||
} | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
public(script) foo(ctx: &mut TxContext.TxContext): u64 * u8 { | ||
label l0: | ||
abort 0; | ||
} | ||
} | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
public(script) foo(ctx: &mut TxContext.TxContext): vector<u8> { | ||
label l0: | ||
abort 0; | ||
} | ||
} | ||
|
||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
public(script) foo(ctx: &mut TxContext.TxContext): &u8 { | ||
label l0: | ||
abort 0; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ransactional-tests/transactional-tests/tests/entry_points/single_generic_vector_param.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-13: | ||
created: object(103) | ||
written: object(102) |
13 changes: 13 additions & 0 deletions
13
...ansactional-tests/transactional-tests/tests/entry_points/single_generic_vector_param.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
|
||
public(script) foo<T>(l: vector<T>, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...verifier-transactional-tests/transactional-tests/tests/entry_points/single_type_param.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-13: | ||
created: object(103) | ||
written: object(102) |
13 changes: 13 additions & 0 deletions
13
...erifier-transactional-tests/transactional-tests/tests/entry_points/single_type_param.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
|
||
public(script) foo<T>(l: T, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...ctional-tests/transactional-tests/tests/entry_points/single_type_param_generic_object.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-16: | ||
created: object(103) | ||
written: object(102) |
16 changes: 16 additions & 0 deletions
16
...tional-tests/transactional-tests/tests/entry_points/single_type_param_generic_object.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.ID; | ||
import 0x2.TxContext; | ||
struct Obj<T> has key { | ||
id: ID.VersionedID, | ||
} | ||
public(script) foo<T>(l: Self.Obj<T>, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...fier-transactional-tests/transactional-tests/tests/entry_points/single_type_param_key.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-13: | ||
created: object(103) | ||
written: object(102) |
13 changes: 13 additions & 0 deletions
13
...ier-transactional-tests/transactional-tests/tests/entry_points/single_type_param_key.mvir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//# publish | ||
module 0x0.M { | ||
import 0x2.TxContext; | ||
|
||
public(script) foo<T: key>(l: T, ctx: &mut TxContext.TxContext) { | ||
label l0: | ||
abort 0; | ||
} | ||
|
||
} |
Oops, something went wrong.