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

Check namespace argument is identifier #931

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

Robbepop
Copy link
Collaborator

Just checks that argument in #[ink(namespace = "argument")] is a valid Rust identifier and adds tests for it.

# Conflicts:
#	crates/lang/macro/tests/compile_tests.rs
#	crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.rs
#	crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.stderr
#	crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.rs
#	crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.stderr
#	crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.rs
#	crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.stderr
@codecov-commenter
Copy link

Codecov Report

Merging #931 (26f1233) into master (725c2f7) will increase coverage by 1.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #931      +/-   ##
==========================================
+ Coverage   86.17%   87.18%   +1.01%     
==========================================
  Files         171      169       -2     
  Lines        7653     7556      -97     
==========================================
- Hits         6595     6588       -7     
+ Misses       1058      968      -90     
Impacted Files Coverage Δ
crates/lang/ir/src/ir/attrs.rs 82.55% <100.00%> (+0.17%) ⬆️
...ates/storage/src/collections/hashmap/fuzz_tests.rs 95.74% <0.00%> (-4.26%) ⬇️
crates/metadata/src/layout/mod.rs 89.04% <0.00%> (-0.57%) ⬇️
crates/storage/src/traits/layout/mod.rs
crates/storage/src/traits/layout/impls.rs
crates/storage/src/lazy/entry.rs 100.00% <0.00%> (+5.26%) ⬆️
crates/storage/src/collections/bitstash/counts.rs 100.00% <0.00%> (+7.14%) ⬆️
crates/storage/src/collections/bitvec/mod.rs 97.59% <0.00%> (+7.59%) ⬆️
crates/storage/src/collections/bitvec/iter.rs 91.50% <0.00%> (+9.30%) ⬆️
crates/storage/src/collections/bitvec/impls.rs 93.33% <0.00%> (+10.98%) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 725c2f7...26f1233. Read the comment docs.

@Robbepop Robbepop merged commit 41b0a1c into master Sep 21, 2021
@Robbepop Robbepop deleted the robin-check-namespace-argument-is-identifier branch September 21, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants