Searched refs:mock (Results 1 – 9 of 9) sorted by relevance
511 let mut cx = Context::mock();547 let mut cx = Context::mock();560 let mut cx = Context::mock();572 let mut cx = Context::mock();612 let mut cx = Context::mock(); in test_send_illegal()635 let mut cx = Context::mock(); in test_send_illegal()663 let mut cx = Context::mock(); in test_recv_process()690 let mut cx = Context::mock(); in test_recv_process()717 let mut cx = Context::mock(); in test_peek_process()743 let mut cx = Context::mock(); in test_peek_process()
632 let mut cx = Context::mock(); in test_send_dispatch()675 let mut cx = Context::mock(); in test_recv_process()696 let mut cx = Context::mock(); in test_peek_process()711 let mut cx = Context::mock(); in test_recv_truncated_slice()726 let mut cx = Context::mock(); in test_peek_truncated_slice()743 let mut cx = Context::mock(); in test_set_hop_limit()770 let mut cx = Context::mock(); in test_doesnt_accept_wrong_port()782 let mut cx = Context::mock(); in test_doesnt_accept_wrong_ip()811 let mut cx = Context::mock(); in test_process_empty_payload()
660 let mut cx = Context::mock(); in test_send_dispatch()715 let mut cx = Context::mock(); in test_set_hop_limit_v4()749 let mut cx = Context::mock(); in test_recv_process()776 let mut cx = Context::mock(); in test_accept_bad_id()797 let mut cx = Context::mock(); in test_accepts_udp()902 let mut cx = Context::mock(); in test_send_dispatch()962 let mut cx = Context::mock(); in test_set_hop_limit()1001 let mut cx = Context::mock(); in test_recv_process()1033 let mut cx = Context::mock(); in test_accept_bad_id()1059 let mut cx = Context::mock(); in test_accepts_udp()
982 cx: Context::mock(), in socket()993 cx: Context::mock(), in socket_different_port()
2542 let cx = Context::mock(); in socket_with_buffer_sizes()
19 mod mock { module43 mod mock { module70 let clock = mock::Clock::new(); in main()
164 mod mock { module192 mod mock { module208 use self::mock::*;
14 mod mock { module115 let clock = mock::Clock::new();
1113 pub(crate) fn mock() -> Self { in mock() method