Added show module which will eventually show DocDef.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -147,14 +147,17 @@ impl Path {
|
||||
mod paths {
|
||||
use super::*;
|
||||
use crate::{
|
||||
action::Records,
|
||||
action::{Records, Show},
|
||||
name::{Name, Names},
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn can_create_for_message() {
|
||||
let input = [
|
||||
(Name::english("one"), MsgAction::Show),
|
||||
(
|
||||
Name::english("one"),
|
||||
MsgAction::Show(Show::new(Name::english("one"))),
|
||||
),
|
||||
(
|
||||
Name::english("two"),
|
||||
MsgAction::Records(Records::new(vec![Name::english("two")], Names::new())),
|
||||
@@ -178,7 +181,8 @@ mod paths {
|
||||
let count = 10;
|
||||
let mut ids: Vec<Uuid> = Vec::new();
|
||||
for _ in 0..count {
|
||||
let path = Path::for_message(NameType::None, &MsgAction::Show);
|
||||
let path =
|
||||
Path::for_message(NameType::None, &MsgAction::Show(Show::new(NameType::None)));
|
||||
let id = match path.msg_id {
|
||||
Include::Just(data) => data.clone(),
|
||||
Include::All => unreachable!("should have been a message id"),
|
||||
|
||||
Reference in New Issue
Block a user