girt-core 2.3.0

Core modules for git-interactive-rebase-tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{
	events::{AppKeyBindings, Event, MetaEvent},
	testutil::create_test_custom_keybindings,
};

pub(crate) type EventHandlerTestContext = input::testutil::TestContext<AppKeyBindings, MetaEvent>;

pub(crate) fn with_event_handler<C>(events: &[Event], callback: C)
where C: FnOnce(EventHandlerTestContext) {
	input::testutil::with_event_handler(create_test_custom_keybindings(), events, callback);
}