Skip to content

Conversation

epilys
Copy link
Contributor

@epilys epilys commented Dec 24, 2024

Convert ignore rustdoc tests to no_run by adding missing code to
make compilation work.

Depends on #117

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
@epilys epilys marked this pull request as ready for review December 25, 2024 16:34
@coveralls
Copy link

coveralls commented Dec 25, 2024

Pull Request Test Coverage Report for Build 12507932881

Details

  • 15 of 26 (57.69%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 57.158%

Changes Missing Coverage Covered Lines Changed/Added Lines %
varlink_derive/src/lib.rs 8 19 42.11%
Totals Coverage Status
Change from base Build 12494802775: -0.1%
Covered Lines: 2787
Relevant Lines: 4876

💛 - Coveralls

@epilys epilys force-pushed the unignore-tests branch 2 times, most recently from a4125e9 to 29b04ca Compare December 25, 2024 18:47
Copy link
Collaborator

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look great otherwise. 👍

Currently, varlink_file! macro takes as argument either an absolute path
or a relative path to the current working directory. This can be
different depending on the Rust/Cargo version.

The documentation says it is relative to the workspace directory, but
that isn't true for the MSRV 1.70.0.

This commit inspects the env var CARGO_MANIFEST_DIR, if it is defined,
and prepends it to the given filename to create an absolute path. This
way, the behavior of the macro is consistent.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Print descriptive errors when a file operation fails in varlink_file!
macro.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Rewrite parts of module and macro rustdocs to make the formatting more
idiomatic and also explain the macro arguments better.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Convert `ignore` rustdoc tests to `no_run` by adding missing code to
make compilation work.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Change inline code block from `norun` to `shell`, and add code backticks
to "<varlink_file>".

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Remove unnecessary String allocation in varlink-certification tests

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
@epilys epilys requested a review from zeenix December 26, 2024 20:10
@zeenix zeenix merged commit 0184a4a into varlink:master Dec 27, 2024
14 checks passed
@epilys epilys deleted the unignore-tests branch December 27, 2024 12:24
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