~qaul/community

alexandria: fix tests that were broken by rename v1 REJECTED

Alyssa Ross: 1
 alexandria: fix tests that were broken by rename

 5 files changed, 9 insertions(+), 9 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~qaul/community/patches/20732/mbox | git am -3
Learn more about email & git

[PATCH] alexandria: fix tests that were broken by rename Export this patch

---
This was causing CI to fail.

 utils/alexandria/src/core/api.rs     | 8 ++++----
 utils/alexandria/src/core/builder.rs | 2 +-
 utils/alexandria/src/utils/path.rs   | 4 ++--
 utils/alexandria/tests/harness.rs    | 2 +-
 utils/alexandria/tests/trivial.rs    | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/utils/alexandria/src/core/api.rs b/utils/alexandria/src/core/api.rs
index c5afd684..14bcc851 100644
--- a/utils/alexandria/src/core/api.rs
+++ b/utils/alexandria/src/core/api.rs
@@ -187,7 +187,7 @@ impl Library {
    /// will only return a single record if successful.
    ///
    /// ```
    /// # use alexandria::{Builder, GLOBAL, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # use alexandria2::{Builder, GLOBAL, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # async fn foo() -> Result<()> {
    /// # let tmp = tempfile::tempdir().unwrap();
    /// # let lib = Builder::new().offset(tmp.path()).build().unwrap();
@@ -213,7 +213,7 @@ impl Library {
    /// Following are a few examples for tag queries.
    ///
    /// ```
    /// # use alexandria::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # use alexandria2::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # async fn foo() -> Result<()> {
    /// # let tmp = tempfile::tempdir().unwrap();
    /// # let lib = Builder::new().offset(tmp.path()).build().unwrap();
@@ -275,7 +275,7 @@ impl Library {
    /// of the `query()` usage quite closely.
    ///
    /// ```
    /// # use alexandria::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # use alexandria2::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::Query};
    /// # async fn foo() -> Result<()> {
    /// # let tmp = tempfile::tempdir().unwrap();
    /// # let lib = Builder::new().offset(tmp.path()).build().unwrap();
@@ -357,7 +357,7 @@ impl Library {
    /// into the database to get an updated set of data.
    ///
    /// ```
    /// # use alexandria::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::{Query, SetQuery}};
    /// # use alexandria2::{GLOBAL, Builder, Library, error::Result, utils::{Tag, TagSet, Path}, query::{Query, SetQuery}};
    /// # async fn foo() -> Result<()> {
    /// # let tmp = tempfile::tempdir().unwrap();
    /// # let lib = Builder::new().offset(tmp.path()).build().unwrap();
diff --git a/utils/alexandria/src/core/builder.rs b/utils/alexandria/src/core/builder.rs
index 168f87f4..d6855690 100644
--- a/utils/alexandria/src/core/builder.rs
+++ b/utils/alexandria/src/core/builder.rs
@@ -16,7 +16,7 @@ use std::{path::Path, result::Result as StdResult};
/// [load]: struct.Library.html#load
///
/// ```
/// # use alexandria::{Builder, Library, error::Result};
/// # use alexandria2::{Builder, Library, error::Result};
/// # use tempfile::tempdir;
/// # fn test() -> Result<()> {
/// let dir = tempdir().unwrap();
diff --git a/utils/alexandria/src/utils/path.rs b/utils/alexandria/src/utils/path.rs
index 61a7f971..6cc4be78 100644
--- a/utils/alexandria/src/utils/path.rs
+++ b/utils/alexandria/src/utils/path.rs
@@ -27,7 +27,7 @@ use std::fmt::{self, Display, Formatter};
/// strings:
///
/// ```rust
/// # use alexandria::utils::Path;
/// # use alexandria2::utils::Path;
/// let _: Path = "/test:data".into();
/// ```
///
@@ -38,7 +38,7 @@ use std::fmt::{self, Display, Formatter};
/// `mkPath!` macro in the same module.
///
/// ```rust,ignore
/// # use alexandria::path::mkPath;
/// # use alexandria2::path::mkPath;
/// let _: Path = mkPath!("imgs", "bob", "cool");
/// ```
///
diff --git a/utils/alexandria/tests/harness.rs b/utils/alexandria/tests/harness.rs
index a722b8e2..a4d28e54 100644
--- a/utils/alexandria/tests/harness.rs
+++ b/utils/alexandria/tests/harness.rs
@@ -1,6 +1,6 @@
//! A test harness for alexandria tests

use alexandria::{utils::Id, Builder, Library, Session};
use alexandria2::{utils::Id, Builder, Library, Session};
use async_std::{sync::Arc, task::block_on};
use std::path::PathBuf;

diff --git a/utils/alexandria/tests/trivial.rs b/utils/alexandria/tests/trivial.rs
index dd4299f7..9ff9b276 100644
--- a/utils/alexandria/tests/trivial.rs
+++ b/utils/alexandria/tests/trivial.rs
@@ -10,7 +10,7 @@
mod harness;
use harness::Test;

use alexandria::{
use alexandria2::{
    query::{Query, QueryResult},
    record::kv::Value,
    utils::{Diff, DiffSeg, Path, Tag, TagSet},
-- 
2.30.0