Benign rust 5,203 installs Download

repose-material 0.31.27

“Material components for Repose”

Rust test marker or harnessSource binds host/url/endpoint to call syntax
SHA-256c81fe507b20335361647bfd93b35bebc7006a5c8020ac4322f8a82f87f614f48

Evidence

imports repose_core::runtime::ComposeGuard bottom_sheet.rs · lines 740–761
⋯4 lines
744}
745
746#[cfg(test)]
747mod tests {
748 use super::*;
749 use repose_core::runtime::ComposeGuard;
750 use repose_core::scope::Scope;
751 use repose_ui::Text;
752 use repose_ui::layout::LayoutEngine;
753 use repose_ui::overlay::{OverlayHandle, with_ambient_overlay};
754 use std::collections::HashMap;
755
756 #[test]
757 fn modal_sheet_release_target_uses_velocity_direction() {
758 assert_eq!(
759 modal_sheet_release_target(30.0, 600.0, 100.0, 56.0, 125.0),
760 0.0
761 …
Source uses an explicit zero-fill format token date_picker.rs · lines 392–395
392:6… et today = today_date();
393 let selected_value = format!("{year:04}-{month:02}-{day:02}");
394 let dismiss_label = config.dismiss_label.clone();
395 let confirm_label = config.confirm_label.clone …
assert_eq! macro date_picker.rs · lines 618–634
⋯4 lines
622}
623
624#[cfg(test)]
625mod tests {
626 use super::*;
627
628 #[test]
629 fn invalid_dates_are_not_exposed() {
630 assert!(DatePickerState::try_new(2024, 2, 30).is_none());
631 assert_eq!(
632 DatePickerState::new(2024, 2, 30).selected_date(),
633 (2024, 2, 29)
634 …
Rust synchronous or async test attribute dropdown_menu.rs · lines 1121–1126
1121:76… s
1122 /// collected rather than pinned to the scope's lifetime.
1123 #[test]
1124 fn dropdown_entry_released_when_host_stops_composing_it() {
1125 let scope = Scope::new();
1126 let overlay = Overlay …
Source binds host/url/endpoint to call syntax tooltip.rs · lines 690–698
690:18… up.dismiss();
691 }
692 });
693 }
694 let host_view = Box(host).child(trigger);
695
696 let anim_key = format!("tooltip_alpha_{id}");
697 let state_visible = state.is_visible();
698 let alp …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.