Per collection/folder auth
This commit is contained in:
1 parent
d5e7b484fc
commit
47ee07d9ff
16 files changed
+1569
-58
No files matched your search
@@ -6,10 +6,14 @@ fn ui_symbols_exist_in_the_bundled_fonts() {
|
||||
let mut harness = egui_kittest::Harness::new_ui(|_ui| {});
|
||||
harness.step();
|
||||
let ctx = harness.ctx.clone();
|
||||
let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src/ui");
|
||||
let src_dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src");
|
||||
// `update` builds some labels too (dialog lists, status messages).
|
||||
let files = std::fs::read_dir(src_dir.join("ui"))
|
||||
.unwrap()
|
||||
.map(|e| e.unwrap().path())
|
||||
.chain([src_dir.join("action.rs"), src_dir.join("state.rs")]);
|
||||
let mut missing = Vec::new();
|
||||
for entry in std::fs::read_dir(dir).unwrap() {
|
||||
let path = entry.unwrap().path();
|
||||
for path in files {
|
||||
let src = std::fs::read_to_string(&path).unwrap();
|
||||
for (n, line) in src.lines().enumerate() {
|
||||
// Only string literals in code matter, not comments.
|
||||
|
||||
Reference in new issue
Block a user