paritytech / ink

Compare 7c24bfa ... +0 ... c773653

Coverage Reach
lang/ir/src/ir/item_impl/mod.rs lang/ir/src/ir/item_impl/callable.rs lang/ir/src/ir/item_impl/message.rs lang/ir/src/ir/item_impl/constructor.rs lang/ir/src/ir/item_impl/impl_item.rs lang/ir/src/ir/item_impl/iter.rs lang/ir/src/ir/item_impl/tests.rs lang/ir/src/ir/attrs.rs lang/ir/src/ir/trait_def/item/mod.rs lang/ir/src/ir/trait_def/item/trait_item.rs lang/ir/src/ir/trait_def/item/iter.rs lang/ir/src/ir/trait_def/config.rs lang/ir/src/ir/trait_def/mod.rs lang/ir/src/ir/trait_def/tests.rs lang/ir/src/ir/item/mod.rs lang/ir/src/ir/item/event.rs lang/ir/src/ir/item/storage.rs lang/ir/src/ir/item_mod.rs lang/ir/src/ir/chain_extension.rs lang/ir/src/ir/config.rs lang/ir/src/ir/selector.rs lang/ir/src/ir/blake2.rs lang/ir/src/ir/idents_lint.rs lang/ir/src/ir/utils.rs lang/ir/src/ir/contract.rs lang/ir/src/ir/ink_test.rs lang/ir/src/ast/attr_args.rs lang/ir/src/literal.rs lang/ir/src/error.rs lang/codegen/src/generator/trait_def/trait_registry.rs lang/codegen/src/generator/trait_def/call_forwarder.rs lang/codegen/src/generator/trait_def/call_builder.rs lang/codegen/src/generator/trait_def/definition.rs lang/codegen/src/generator/trait_def/mod.rs lang/codegen/src/generator/dispatch.rs lang/codegen/src/generator/as_dependency/contract_ref.rs lang/codegen/src/generator/as_dependency/call_builder.rs lang/codegen/src/generator/as_dependency/mod.rs lang/codegen/src/generator/metadata.rs lang/codegen/src/generator/item_impls.rs lang/codegen/src/generator/events.rs lang/codegen/src/generator/chain_extension.rs lang/codegen/src/generator/arg_list.rs lang/codegen/src/generator/storage.rs lang/codegen/src/generator/ink_test.rs lang/codegen/src/generator/contract.rs lang/codegen/src/generator/selector.rs lang/codegen/src/generator/blake2b.rs lang/codegen/src/generator/env.rs lang/codegen/src/generator/mod.rs lang/codegen/src/enforced_error.rs lang/codegen/src/traits.rs lang/codegen/src/lib.rs lang/tests/ui/contract/pass/example-erc721-works.rs lang/tests/ui/contract/pass/example-erc20-works.rs lang/tests/ui/contract/pass/dispatch-decoder-works.rs lang/tests/ui/contract/pass/event-topics.rs lang/tests/ui/contract/pass/event-anonymous.rs lang/tests/ui/contract/pass/event-many-definitions.rs lang/tests/ui/contract/pass/example-trait-incrementer-works.rs lang/tests/ui/contract/pass/message-selector.rs lang/tests/ui/contract/pass/event-config-more-topics.rs lang/tests/ui/contract/pass/message-many-outputs.rs lang/tests/ui/contract/pass/message-many-inputs.rs lang/tests/ui/contract/pass/env-access.rs lang/tests/ui/contract/pass/example-trait-flipper-works.rs lang/tests/ui/contract/pass/traits-messages-same-name.rs lang/tests/ui/contract/pass/constructor-many-inputs.rs lang/tests/ui/contract/pass/example-incrementer-works.rs lang/tests/ui/contract/pass/example-flipper-works.rs lang/tests/ui/contract/pass/constructor-selector.rs lang/tests/ui/contract/pass/impl-block-using-env.rs lang/tests/ui/contract/pass/module-non-ink-items.rs lang/tests/ui/contract/pass/trait-message-payable-guard.rs lang/tests/ui/contract/pass/trait-message-selector-guard.rs lang/tests/ui/contract/pass/message-payable.rs lang/tests/ui/contract/pass/constructor-payable-multiple.rs lang/tests/ui/contract/pass/constructor-non-payable-multiple.rs lang/tests/ui/contract/pass/message-wildcard-selector.rs lang/tests/ui/contract/pass/storage-packed-fields.rs lang/tests/ui/contract/pass/constructor-payable.rs lang/tests/ui/contract/pass/config-keep-attr.rs lang/tests/ui/contract/pass/event-single-definition.rs lang/tests/ui/contract/pass/storage-with-derives.rs lang/tests/ui/contract/pass/storage-many-fields.rs lang/tests/ui/contract/pass/module-env-types.rs lang/tests/ui/contract/pass/storage-single-field.rs lang/tests/ui/contract/pass/constructor-non-payable.rs lang/tests/ui/contract/pass/constructor-wildcard-selector.rs lang/tests/ui/contract/pass/impl-block-namespace.rs lang/tests/ui/contract/pass/impl-with-property.rs lang/tests/ui/contract/pass/no-implicit-prelude.rs lang/tests/ui/contract/pass/impl-alias-storage.rs lang/tests/ui/contract/pass/minimal-contract.rs lang/tests/ui/contract/pass/config-custom-env.rs lang/tests/ui/chain_extension/E-01-simple.rs lang/tests/ui/trait_def/pass/payable_message.rs lang/tests/ui/trait_def/pass/valid_selectors_namespace.rs lang/tests/ui/trait_def/pass/valid_selectors.rs lang/tests/ui/trait_def/pass/avoid_overlap_with_namespace.rs lang/tests/ui/trait_def/pass/with_keep_attr.rs lang/tests/ui/trait_def/pass/many_outputs.rs lang/tests/ui/trait_def/pass/using-env-types.rs lang/tests/ui/trait_def/pass/simple_definition.rs lang/tests/ui/trait_def/pass/many_inputs.rs lang/tests/ui/trait_def/pass/with_namespace.rs lang/tests/ui/trait_def/pass/no-implicit-prelude.rs lang/tests/ui/selector_id/pass/string_input.rs lang/tests/ui/selector_id/pass/bytestring_input.rs lang/tests/ui/selector_id/pass/no_implicit_prelude.rs lang/tests/ui/blake2b/pass/bytestring_input.rs lang/tests/ui/blake2b/pass/string_input.rs lang/tests/ui/blake2b/pass/no_implicit_prelude.rs lang/tests/ui/selector_bytes/pass/bytestring_input.rs lang/tests/ui/selector_bytes/pass/string_input.rs lang/tests/ui/selector_bytes/pass/no_implicit_prelude.rs lang/tests/unique_topics.rs lang/src/codegen/dispatch/execution.rs lang/src/env_access.rs lang/src/reflect/dispatch.rs lang/src/result_info.rs lang/macro/src/lib.rs lang/macro/src/selector.rs lang/macro/src/blake2b.rs lang/macro/src/contract.rs lang/macro/src/chain_extension.rs lang/macro/src/trait_def.rs lang/macro/src/ink_test.rs env/src/engine/off_chain/impls.rs env/src/engine/off_chain/test_api.rs env/src/engine/off_chain/types.rs env/src/engine/off_chain/call_data.rs env/src/engine/off_chain/mod.rs env/src/call/call_builder.rs env/src/call/execution_input.rs env/src/call/create_builder.rs env/src/call/common.rs env/src/call/selector.rs env/src/api.rs env/src/chain_extension.rs env/src/types.rs env/src/backend.rs env/src/topics.rs env/src/arithmetic.rs storage/src/traits/impls/prims.rs storage/src/traits/impls/fuzz_tests.rs storage/src/traits/impls/tuples.rs storage/src/traits/impls/mod.rs storage/src/traits/impls/arrays.rs storage/src/traits/mod.rs storage/src/traits/layout/impls.rs storage/src/traits/layout/mod.rs storage/src/traits/optspec.rs storage/src/traits/keyptr.rs storage/src/test_utils.rs storage/src/pack.rs storage/src/lazy/mapping.rs storage/derive/src/spread_layout.rs storage/derive/src/storage_layout.rs storage/derive/src/spread_allocate.rs storage/derive/src/packed_layout.rs metadata/src/specs.rs metadata/src/layout/mod.rs metadata/src/layout/tests.rs metadata/src/lib.rs metadata/src/utils.rs engine/src/ext.rs engine/src/test_api.rs engine/src/database.rs engine/src/chain_extension.rs engine/src/exec_context.rs engine/src/hashing.rs engine/src/types.rs engine/src/tests.rs primitives/src/key.rs primitives/src/key_ptr.rs allocator/src/bump.rs

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 4 files from the diff.

@@ -12,6 +12,23 @@
Loading
12 12
// See the License for the specific language governing permissions and
13 13
// limitations under the License.
14 14
15 +
//! The ink! code generation.
16 +
//!
17 +
//! This module defines everything the ink! procedural macro needs in order to
18 +
//! generate Rust code for ink! smart contracts.
19 +
//!
20 +
//! We avoid structuring things via hidden or private modules, this
21 +
//! was the ink! v1 way of doing code generation and it was bug prone
22 +
//! and hard to maintain.
23 +
//!
24 +
//! What we do instead to generate code that is hidden from users is to
25 +
//! pack it into anonymous `const` (so `const _: () = { … };`) and connect
26 +
//! those to the outside world with private trait implementations.
27 +
//!
28 +
//! You can see how the generated code looks by installing
29 +
//! [`cargo-expand`](https://github.com/dtolnay/cargo-expand)
30 +
//! and executing `cargo expand --manifest-path ./examples/flipper/Cargo.toml` in this repository.
31 +
15 32
mod enforced_error;
16 33
mod generator;
17 34
mod traits;

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
crates 71.96%
Project Totals (177 files) 71.96%
Loading