Added show module which will eventually show DocDef.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-16 07:12:59 -05:00
parent 903158b72a
commit e2bb5bb93f
7 changed files with 62 additions and 9 deletions

View File

@@ -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"),