Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit c01ab5a

Browse files
committed
Add test crate to check if all the generated items have an associated doc
1 parent 1ea9b54 commit c01ab5a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

test-doc/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "test-doc"
3+
version = "0.1.0"
4+
authors = ["yamakaky"]
5+
6+
[dependencies]
7+
error-chain = { path = ".." }

test-doc/src/lib.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#[macro_use]
2+
extern crate error_chain;
3+
4+
/// This module is used to check that all generated items are documented.
5+
#[deny(missing_docs)]
6+
pub mod doc {
7+
pub mod inner {
8+
error_chain! {
9+
}
10+
}
11+
12+
error_chain! {
13+
links {
14+
inner::Error, Test;
15+
}
16+
errors {
17+
Test2 {
18+
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)