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

Integrate cairo coverage #255

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"type_declarations":[],"libfunc_declarations":[],"statements":[],"funcs":[],"debug_info":{"type_names":[],"libfunc_names":[],"user_func_names":[],"annotations":{"github.com/software-mansion/cairo-profiler":{"statements_functions":{}},"github.com/software-mansion/cairo-coverage":{"statements_code_locations":{}}}}}

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies = [
"shinigami_compiler",
"shinigami_engine",
"shinigami_utils",
"snforge_std",
]

[[package]]
Expand All @@ -26,6 +27,7 @@ version = "0.1.0"
dependencies = [
"shinigami_engine",
"shinigami_utils",
"snforge_std",
]

[[package]]
Expand All @@ -36,8 +38,27 @@ dependencies = [
"sha1",
"shinigami_compiler",
"shinigami_utils",
"snforge_std",
]

[[package]]
name = "shinigami_utils"
version = "0.1.0"
dependencies = [
"snforge_std",
]

[[package]]
name = "snforge_scarb_plugin"
version = "0.31.0"
source = "registry+https://scarbs.xyz/"
checksum = "sha256:1fce075fcbf7fce1b0935f6f9a034549704837fb221da212d3b6e9134cebfdaa"

[[package]]
name = "snforge_std"
version = "0.31.0"
source = "registry+https://scarbs.xyz/"
checksum = "sha256:60ac980b297281f9a59a5f1668cb56bdea1b28fd2f8008008270f9a3c91ad3ba"
dependencies = [
"snforge_scarb_plugin",
]
10 changes: 9 additions & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ repository = "https://github.com/keep-starknet-strange/shinigami.git"
[workspace.dependencies]
ripemd160 = { git = "https://github.com/j1mbo64/ripemd160_cairo.git" }
sha1 = { git = "https://github.com/j1mbo64/sha1_cairo.git" }
cairo_test = "2.8.2"

[dev-dependencies]
assert_macros = "2.8.2"
snforge_std = "0.31.0"

[profile.dev.cairo]
unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true
inlining-strategy = "avoid"
8 changes: 7 additions & 1 deletion packages/cmds/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ shinigami_engine = { path = "../engine" }
shinigami_utils = { path = "../utils" }

[dev-dependencies]
cairo_test.workspace = true
assert_macros = "2.8.2"
snforge_std = "0.31.0"

[scripts]
lint = "scarb fmt"

[profile.dev.cairo]
unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true
inlining-strategy = "avoid"
8 changes: 7 additions & 1 deletion packages/compiler/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ shinigami_engine = { path = "../engine" }
shinigami_utils = { path = "../utils" }

[dev-dependencies]
cairo_test.workspace = true
assert_macros = "2.8.2"
snforge_std = "0.31.0"

[scripts]
lint = "scarb fmt"

[profile.dev.cairo]
unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true
inlining-strategy = "avoid"
Loading
Loading