From 8c4091b6da39591faa871615b0e720ce718b0fc4 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Thu, 10 Aug 2023 00:24:27 +0900 Subject: [PATCH] =?UTF-8?q?Rust=E3=81=AEdoctest=E3=82=92CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 2 ++ crates/voicevox_core/src/voice_synthesizer.rs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 947f4143f..e575974bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -87,6 +87,8 @@ jobs: key: "cargo-unit-test-cache" - name: Run cargo unit test run: RUST_BACKTRACE=full cargo test --lib --bins -vv --features , -- --include-ignored + - name: Run cargo documentation test + run: RUST_BACKTRACE=full cargo test --doc -vv rust-integration-test-strategy-matrix: # 実行対象の条件をフィルタリングする runs-on: ubuntu-latest diff --git a/crates/voicevox_core/src/voice_synthesizer.rs b/crates/voicevox_core/src/voice_synthesizer.rs index 5c975c0a6..fbfb12337 100644 --- a/crates/voicevox_core/src/voice_synthesizer.rs +++ b/crates/voicevox_core/src/voice_synthesizer.rs @@ -333,8 +333,8 @@ impl Synthesizer { /// /// let accent_phrases = syntesizer /// .create_accent_phrases( - /// "こんにちは", // 日本語のテキスト - /// StyleId::new(2), // "四国めたん (ノーマル)", + /// "こんにちは", // 日本語のテキスト + /// StyleId::new(302), /// &Default::default(), /// ) /// .await?; @@ -378,8 +378,8 @@ impl Synthesizer { /// /// let accent_phrases = syntesizer /// .create_accent_phrases( - /// "コンニチワ'", // AquesTalk風記法 - /// StyleId::new(2), // "四国めたん (ノーマル)", + /// "コンニチワ'", // AquesTalk風記法 + /// StyleId::new(302), /// &AccentPhrasesOptions { kana: true }, /// ) /// .await?; @@ -484,8 +484,8 @@ impl Synthesizer { /// /// let audio_query = syntesizer /// .audio_query( - /// "こんにちは", // 日本語のテキスト - /// StyleId::new(2), // "四国めたん (ノーマル)", + /// "こんにちは", // 日本語のテキスト + /// StyleId::new(302), /// &Default::default(), /// ) /// .await?; @@ -529,8 +529,8 @@ impl Synthesizer { /// /// let audio_query = syntesizer /// .audio_query( - /// "コンニチワ'", // AquesTalk風記法 - /// StyleId::new(2), // "四国めたん (ノーマル)", + /// "コンニチワ'", // AquesTalk風記法 + /// StyleId::new(302), /// &AudioQueryOptions { kana: true }, /// ) /// .await?;