Skip to content

Commit

Permalink
ci: fix doctest command, fix invalid doctests in euphony_library
Browse files Browse the repository at this point in the history
  • Loading branch information
simongoricar committed Mar 17, 2024
1 parent 649c17e commit b7be964
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: Run unit and integration tests
run: cargo nextest run --all-features --all-targets --workspace --verbose
- name: Run documentation tests
run: cargo test --all-features --doc --verbose
run: cargo test --all-features --doc --workspace --verbose
8 changes: 5 additions & 3 deletions euphony_library/src/state/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ impl SourceAlbumState {
///
/// # Example
/// ```
/// let directory_path = Path::from("D:/MusicLibrary/Ed Harrison/Neotokyo");
/// # use std::path::Path;
/// # use euphony_library::state::source::SourceAlbumState;
/// let directory_path = Path::new("D:/MusicLibrary/Ed Harrison/Neotokyo");
///
/// assert_eq!(
/// Self::get_state_file_path_for_directory(directory_path),
/// Path::from("D:/MusicLibrary/Ed Harrison/Neotokyo/.album.source-state.euphony`)
/// SourceAlbumState::get_state_file_path_for_directory(directory_path),
/// Path::new("D:/MusicLibrary/Ed Harrison/Neotokyo/.album.source-state.euphony")
/// );
/// ```
pub fn get_state_file_path_for_directory<P: AsRef<Path>>(
Expand Down
8 changes: 5 additions & 3 deletions euphony_library/src/state/transcoded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ impl TranscodedAlbumState {
///
/// # Example
/// ```
/// let directory_path = Path::from("D:/MusicLibrary/Ed Harrison/Neotokyo");
/// # use std::path::Path;
/// # use euphony_library::state::transcoded::TranscodedAlbumState;
/// let directory_path = Path::new("D:/MusicLibrary/Ed Harrison/Neotokyo");
///
/// assert_eq!(
/// Self::get_state_file_path_for_directory(directory_path),
/// Path::from("D:/MusicLibrary/Ed Harrison/Neotokyo/.album.transcode-state.euphony`)
/// TranscodedAlbumState::get_state_file_path_for_directory(directory_path),
/// Path::new("D:/MusicLibrary/Ed Harrison/Neotokyo/.album.transcode-state.euphony")
/// );
/// ```
pub fn get_state_file_path_for_directory<P: AsRef<Path>>(
Expand Down

0 comments on commit b7be964

Please sign in to comment.