GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #15648 from developing-today/felix/803-final-slice · developing-today/code@4e289a4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pkgs/id/crates
    • id-caps/src
      • agent_quota_ledger.rs
      • portal.rs
      • world_manifest.rs
    • id-core
      • src/graph
        • navigation.rs
      • tests
        • social_object_contract.rs
    • id-events
      • src
        • attestation/v1
          • reducer.rs
        • event_store
          • compaction.rs
      • tests
        • append_list_state_machine.rs
    • id-import-notion
      • src
        • rows.rs
      • tests
        • recorded_comments.rs
        • recorded_content.rs
        • recorded_rows.rs
    • id-web/src
      • collab.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pkgs/id/crates/id-caps/src/agent_quota_ledger.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-caps/src/agent_quota_ledger.rs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ impl QuotaLedgerStore {
453453
}
454454

455455
#[cfg(test)]
456+
#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
456457
mod tests {
457458
use super::*;
458459

Collapse file

‎pkgs/id/crates/id-caps/src/portal.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-caps/src/portal.rs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ pub fn audit_for_refusal(
383383
}
384384

385385
#[cfg(test)]
386+
#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
386387
mod tests {
387388
use super::*;
388389

Collapse file

‎pkgs/id/crates/id-caps/src/world_manifest.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-caps/src/world_manifest.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ tree = "T"
14141414
fn an_omitted_table_leaves_the_live_policy_alone() {
14151415
let mut state = WorldState::default();
14161416
state.presentation.assets.max_rung = Rung::Glyph;
1417-
assert!(plan(&WorldManifest::default(), &state).is_empty());
1417+
assert_eq!(plan(&WorldManifest::default(), &state), [] as [ApplyStep; 0]);
14181418
}
14191419

14201420
#[test]
@@ -1430,7 +1430,7 @@ tree = "T"
14301430

14311431
assert_eq!(apply(&steps, &mut state).unwrap(), 1);
14321432
assert_eq!(Some(&state.presentation), manifest.presentation.as_ref());
1433-
assert!(plan(&manifest, &state).is_empty());
1433+
assert_eq!(plan(&manifest, &state), [] as [ApplyStep; 0]);
14341434
assert_eq!(diff(&manifest, &state), "no drift");
14351435
}
14361436

Collapse file

‎pkgs/id/crates/id-core/src/graph/navigation.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-core/src/graph/navigation.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ mod tests {
14531453
&bounds,
14541454
)
14551455
.unwrap();
1456-
assert!(page.items.is_empty());
1456+
assert_eq!(page.items, [] as [Step; 0]);
14571457
assert!(page.is_end());
14581458
}
14591459

@@ -1485,7 +1485,7 @@ mod tests {
14851485
// An actor takes part in no thread.
14861486
let page =
14871487
threads_for_object(&graph, &Request::new(id("alice"), 50), &everyone, &bounds).unwrap();
1488-
assert!(page.items.is_empty());
1488+
assert_eq!(page.items, [] as [Node; 0]);
14891489
}
14901490

14911491
#[test]
Collapse file

‎pkgs/id/crates/id-core/tests/social_object_contract.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-core/tests/social_object_contract.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ fn validated_envelopes_feed_paged_traversal() {
343343
let mut pages = 0;
344344
loop {
345345
let page = traverse_page(&objects, &root, &small, all, cursor).expect("page");
346-
assert!(page.missing.is_empty());
346+
assert_eq!(page.missing, [] as [ObjectRef; 0]);
347347
let count = page
348348
.entries
349349
.iter()
Collapse file

‎pkgs/id/crates/id-events/src/attestation/v1/reducer.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-events/src/attestation/v1/reducer.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ mod tests {
15181518
let reduction = world.reduce();
15191519
assert_eq!(reduction.state, V1MatchState::Void);
15201520
assert_eq!(reduction.void_audits, vec![h("clean audit")]);
1521-
assert!(reduction.audits.is_empty());
1521+
assert_eq!(reduction.audits, [] as [Hash; 0]);
15221522
}
15231523

15241524
#[test]
@@ -1998,13 +1998,13 @@ mod tests {
19981998
world.received("decision", W, 650);
19991999
let reduction = world.reduce();
20002000
assert_eq!(reduction.superseded, vec![h("fallback")]);
2001-
assert!(reduction.premature.is_empty());
2001+
assert_eq!(reduction.premature, [] as [Hash; 0]);
20022002

20032003
let mut world = World::with_terms();
20042004
fallback_after(&mut world, 699);
20052005
let reduction = world.reduce();
20062006
assert_eq!(reduction.premature, vec![h("fallback")]);
2007-
assert!(reduction.superseded.is_empty());
2007+
assert_eq!(reduction.superseded, [] as [Hash; 0]);
20082008
}
20092009

20102010
#[test]
@@ -2016,7 +2016,7 @@ mod tests {
20162016
seq: 4,
20172017
});
20182018
let reduction = world.reduce();
2019-
assert!(reduction.void.is_empty());
2019+
assert_eq!(reduction.void, [] as [Hash; 0]);
20202020
assert_eq!(reduction.void_receipts, vec![h("closure")]);
20212021
assert_eq!(reduction.finality, Finality::Unproven);
20222022
}
Collapse file

‎pkgs/id/crates/id-events/src/event_store/compaction.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-events/src/event_store/compaction.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,10 @@ mod tests {
911911
assert_eq!(pruned, 6, "four residue positions and two stored events");
912912
assert_eq!(residue_count(&store), 0);
913913
assert_eq!(store.chain(&who).unwrap(), None);
914-
assert!(store.sync_entries().unwrap().is_empty());
914+
assert_eq!(
915+
store.sync_entries().unwrap(),
916+
[] as [(id_store::range::Key, id_store::range::Id); 0]
917+
);
915918
for (index, event) in events.iter().enumerate() {
916919
assert_eq!(
917920
store.validity_now(&event.id).unwrap(),
Collapse file

‎pkgs/id/crates/id-events/tests/append_list_state_machine.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-events/tests/append_list_state_machine.rs
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
//! membership and revocation; idempotency keys conflict on different bytes;
66
//! and accepted order is append-only.
77
8+
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
9+
810
use std::collections::BTreeSet;
911

1012
use id_core::graph::append_list::{AdmissionOutcome, AttributeSubmission, PendingId};
Collapse file

‎pkgs/id/crates/id-import-notion/src/rows.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-import-notion/src/rows.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ mod tests {
753753
);
754754
assigned(&mut manifest);
755755
let conversion = convert_row(&mut manifest, "row-1").unwrap();
756-
assert!(conversion.references.is_empty());
756+
assert_eq!(conversion.references, [] as [RelationReference; 0]);
757757
assert_eq!(conversion.externalised.len(), 1);
758758
assert_eq!(
759759
conversion.externalised[0].reason,
Collapse file

‎pkgs/id/crates/id-import-notion/tests/recorded_comments.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-import-notion/tests/recorded_comments.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use std::collections::BTreeMap;
99

1010
use anyhow::{Context, Result, bail};
11-
use id_import_notion::comments::{CommentConversion, CommentsCoverage, convert_comments};
11+
use id_import_notion::comments::{CommentClaim, CommentConversion, CommentsCoverage, convert_comments};
1212
use id_import_notion::{Inventory, Manifest, NOTION_API_VERSION, NotionApi};
1313
use serde_json::{Value, json};
1414

@@ -257,15 +257,15 @@ fn recorded_comments_become_claims_with_coverage_accounting() {
257257
manifest.comments_coverage[BETA],
258258
CommentsCoverage::Unavailable
259259
);
260-
assert!(manifest.comment_claims[BETA].is_empty());
260+
assert_eq!(manifest.comment_claims[BETA], [] as [CommentClaim; 0]);
261261

262262
// Gamma: available but no comments — covered with an empty claim set,
263263
// distinct from Beta's unavailable.
264264
let gamma = convert_comments(&mut api, &mut manifest, GAMMA).unwrap();
265265
assert_eq!(gamma.claims.len(), 0);
266266
assert_eq!(gamma.coverage, CommentsCoverage::Covered);
267267
assert_eq!(manifest.comments_coverage[GAMMA], CommentsCoverage::Covered);
268-
assert!(manifest.comment_claims[GAMMA].is_empty());
268+
assert_eq!(manifest.comment_claims[GAMMA], [] as [CommentClaim; 0]);
269269

270270
// §8 check 3 at conversion level: re-running over the unchanged
271271
// corpus reproduces identical claims and coverage.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.