Skip to content

Commit

Permalink
Add dummy doc for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
autquis committed Oct 21, 2024
1 parent 780d9dc commit f374720
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions poly-commit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ fn lc_query_set_to_poly_query_set<'a, F: Field, T: Clone + Ord>(
poly_query_set
}

/// Dummy doc
#[cfg(test)]
pub mod tests {
use crate::*;
Expand All @@ -645,6 +646,7 @@ pub mod tests {
sponge: fn() -> S,
}

/// Dummy doc
pub fn bad_degree_bound_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -738,6 +740,7 @@ pub mod tests {
Ok(())
}

/// Dummy doc
fn test_template<F, P, PC, S>(info: TestInfo<F, P, S>) -> Result<(), PC::Error>
where
F: PrimeField,
Expand Down Expand Up @@ -879,6 +882,7 @@ pub mod tests {
Ok(())
}

/// Dummy doc
fn equation_test_template<F, P, PC, S>(info: TestInfo<F, P, S>) -> Result<(), PC::Error>
where
F: PrimeField,
Expand Down Expand Up @@ -1060,6 +1064,7 @@ pub mod tests {
Ok(())
}

/// Dummy doc
pub fn single_poly_test<F, P, PC, S>(
num_vars: Option<usize>,
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
Expand Down Expand Up @@ -1088,6 +1093,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn linear_poly_degree_bound_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -1115,6 +1121,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn single_poly_degree_bound_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -1142,6 +1149,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn quadratic_poly_degree_bound_multiple_queries_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -1169,6 +1177,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn single_poly_degree_bound_multiple_queries_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -1196,6 +1205,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn two_polys_degree_bound_single_query_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down Expand Up @@ -1223,6 +1233,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn full_end_to_end_test<F, P, PC, S>(
num_vars: Option<usize>,
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
Expand Down Expand Up @@ -1251,6 +1262,7 @@ pub mod tests {
test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn full_end_to_end_equation_test<F, P, PC, S>(
num_vars: Option<usize>,
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
Expand Down Expand Up @@ -1279,6 +1291,7 @@ pub mod tests {
equation_test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn single_equation_test<F, P, PC, S>(
num_vars: Option<usize>,
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
Expand Down Expand Up @@ -1307,6 +1320,7 @@ pub mod tests {
equation_test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn two_equation_test<F, P, PC, S>(
num_vars: Option<usize>,
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
Expand Down Expand Up @@ -1335,6 +1349,7 @@ pub mod tests {
equation_test_template::<F, P, PC, S>(info)
}

/// Dummy doc
pub fn two_equation_degree_bound_test<F, P, PC, S>(
rand_poly: fn(usize, Option<usize>, &mut ChaCha20Rng) -> P,
rand_point: fn(Option<usize>, &mut ChaCha20Rng) -> P::Point,
Expand Down
1 change: 1 addition & 0 deletions poly-commit/src/streaming_kzg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub use data_structures::*;
pub use space::CommitterKeyStream;
pub use time::CommitterKey;

/// Dummy docs
#[cfg(test)]
pub mod tests;

Expand Down

0 comments on commit f374720

Please sign in to comment.