Skip to content

Commit

Permalink
chore(core): Mock traits for testing should not have their docs hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Oct 5, 2024
1 parent 4b13aa7 commit 8237c28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions swiftide-core/src/indexing_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ dyn_clone::clone_trait_object!(Transformer);

#[cfg(feature = "test-utils")]
mock! {
#[doc(hidden)]
#[derive(Debug)]
pub Transformer {}

Expand Down Expand Up @@ -117,7 +116,6 @@ dyn_clone::clone_trait_object!(BatchableTransformer);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub BatchableTransformer {}

#[async_trait]
Expand Down Expand Up @@ -196,7 +194,6 @@ dyn_clone::clone_trait_object!(Loader);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub Loader {}

#[async_trait]
Expand Down Expand Up @@ -255,7 +252,6 @@ dyn_clone::clone_trait_object!(ChunkerTransformer);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub ChunkerTransformer {}

#[async_trait]
Expand Down Expand Up @@ -318,7 +314,6 @@ dyn_clone::clone_trait_object!(NodeCache);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub NodeCache {}

#[async_trait]
Expand Down Expand Up @@ -381,7 +376,6 @@ dyn_clone::clone_trait_object!(EmbeddingModel);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub EmbeddingModel {}

#[async_trait]
Expand Down Expand Up @@ -430,7 +424,6 @@ dyn_clone::clone_trait_object!(SparseEmbeddingModel);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub SparseEmbeddingModel {}

#[async_trait]
Expand Down Expand Up @@ -479,7 +472,6 @@ dyn_clone::clone_trait_object!(SimplePrompt);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub SimplePrompt {}

#[async_trait]
Expand Down Expand Up @@ -532,7 +524,6 @@ dyn_clone::clone_trait_object!(Persist);
#[cfg(feature = "test-utils")]
mock! {
#[derive(Debug)]
#[doc(hidden)]
pub Persist {}

#[async_trait]
Expand Down
5 changes: 0 additions & 5 deletions swiftide-core/src/query_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::{
};

#[cfg(feature = "test-utils")]
#[doc(hidden)]
use mockall::{mock, predicate::str};

/// Can transform queries before retrieval
Expand All @@ -32,7 +31,6 @@ dyn_clone::clone_trait_object!(TransformQuery);

#[cfg(feature = "test-utils")]
mock! {
#[doc(hidden)]
#[derive(Debug)]
pub TransformQuery {}

Expand Down Expand Up @@ -135,7 +133,6 @@ dyn_clone::clone_trait_object!(TransformResponse);

#[cfg(feature = "test-utils")]
mock! {
#[doc(hidden)]
#[derive(Debug)]
pub TransformResponse {}

Expand Down Expand Up @@ -182,7 +179,6 @@ dyn_clone::clone_trait_object!(Answer);

#[cfg(feature = "test-utils")]
mock! {
#[doc(hidden)]
#[derive(Debug)]
pub Answer {}

Expand Down Expand Up @@ -225,7 +221,6 @@ dyn_clone::clone_trait_object!(EvaluateQuery);

#[cfg(feature = "test-utils")]
mock! {
#[doc(hidden)]
#[derive(Debug)]
pub EvaluateQuery {}

Expand Down

0 comments on commit 8237c28

Please sign in to comment.