-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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,45 @@ | ||
/* https://cadence-lang.org/docs/testing-framework | ||
*/ | ||
// A `setup` function that always runs before the rest of the test cases. | ||
// Can be used to initialize things that would be used across the test cases. | ||
// e.g: initialling a blockchain backend, initializing a contract, etc. | ||
access(all) | ||
fun setup() { | ||
} | ||
|
||
// The `beforeEach` function runs before each test case. Can be used to perform | ||
// some state cleanup before each test case, among other things. | ||
access(all) | ||
fun beforeEach() { | ||
} | ||
|
||
// The `afterEach` function runs after each test case. Can be used to perform | ||
// some state cleanup after each test case, among other things. | ||
access(all) | ||
fun afterEach() { | ||
} | ||
|
||
// Valid test functions start with the 'test' prefix. | ||
access(all) | ||
fun testSomething() { | ||
} | ||
|
||
access(all) | ||
fun testAnotherThing() { | ||
} | ||
|
||
access(all) | ||
fun testMoreThings() { | ||
} | ||
|
||
// Test functions cannot have any arguments or return values. | ||
access(all) | ||
fun testInvalidSignature(message: String): Bool { | ||
} | ||
|
||
// A `tearDown` function that always runs at the end of all test cases. | ||
// e.g: Can be used to stop the blockchain back-end used for tests, etc. or any cleanup. | ||
access(all) | ||
fun tearDown() { | ||
} | ||
|
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,21 @@ | ||
--- | ||
# github.com/AlDanial/cloc | ||
header : | ||
cloc_url : github.com/AlDanial/cloc | ||
cloc_version : 2.03 | ||
elapsed_seconds : 0.00456786155700684 | ||
n_files : 1 | ||
n_lines : 45 | ||
files_per_second : 218.920820502114 | ||
lines_per_second : 9851.43692259512 | ||
report_file : ../outputs/cadence_test.cdc.yaml | ||
'Cadence' : | ||
nFiles: 1 | ||
blank: 8 | ||
comment: 13 | ||
code: 24 | ||
SUM: | ||
blank: 8 | ||
comment: 13 | ||
code: 24 | ||
nFiles: 1 |