• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:only

1 // These tests require the thread-local scoped dispatcher, which only works when
16 #[test]
20 // won't enter any spans in this test, so the subscriber won't actually in handles_to_the_same_span_are_equal()
25 // The purpose of this test is to assert that two clones of the same in handles_to_the_same_span_are_equal()
36 #[test]
49 #[test]
53 fn make_span() -> Span { in handles_to_different_spans_with_the_same_metadata_are_not_equal()
67 #[test]
75 .only() in spans_always_go_to_the_subscriber_that_tagged_them()
91 // <https://rustwasm.github.io/2018/10/24/multithreading-rust-and-wasm.html>
93 // But for now since it's not possible we don't need to test for it :)
94 #[test]
102 .only() in spans_always_go_to_the_subscriber_that_tagged_them_even_across_threads()
122 #[test]
128 .only() in dropping_a_span_calls_drop_span()
140 #[test]
147 .only() in span_closes_after_event()
159 #[test]
169 .only() in new_span_after_event()
182 #[test]
189 .only() in event_outside_of_span()
200 #[test]
216 #[test]
233 #[test]
244 let subscriber2 = subscriber::mock().only().run(); in clone_and_drop_span_always_go_to_the_subscriber_that_tagged_the_span()
264 #[test]
270 .only() in span_closes_when_exited()
284 #[test]
291 .only() in enter()
303 #[test]
310 .only() in entered()
321 #[test]
328 .only() in entered_api()
341 #[test]
348 .only(), in moved_field()
354 .only() in moved_field()
370 #[test]
376 .with_field(expect::field("fields.bar").with_value(&true).only()), in dotted_field_name()
378 .only() in dotted_field_name()
388 #[test]
395 .only(), in borrowed_field()
401 .only() in borrowed_field()
417 #[test]
418 // If emitting log instrumentation, this gets moved anyway, breaking the test.
431 y: -1.223, in move_field_out_of_struct()
438 .and(expect::field("y").with_value(&debug(-1.223))) in move_field_out_of_struct()
439 .only(), in move_field_out_of_struct()
445 .with_field(expect::field("position").with_value(&debug(&pos)).only()), in move_field_out_of_struct()
452 y: -1.223, in move_field_out_of_struct()
464 #[test]
471 .and(expect::field("y").with_value(&-1.223)) in float_values()
472 .only(), in float_values()
478 let foo = tracing::span!(Level::TRACE, "foo", x = 3.234, y = -1.223); in float_values()
486 // re-enable these.
489 #[test]
496 .and(expect::field("baz").with_value).only()),
500 field::expect("baz").with_value(&true).only(),
505 .only()
518 #[test]
524 field::expect("bar").with_value(&5).only(),
528 field::expect("baz").with_value(&true).only(),
533 .only()
548 #[test]
556 .only(), in record_new_value_for_field()
561 expect::field("baz").with_value(&true).only(), in record_new_value_for_field()
566 .only() in record_new_value_for_field()
579 #[test]
587 .only(), in record_new_values_for_fields()
592 expect::field("bar").with_value(&5).only(), in record_new_values_for_fields()
596 expect::field("baz").with_value(&true).only(), in record_new_values_for_fields()
601 .only() in record_new_values_for_fields()
615 #[test]
624 .only() in new_span_with_target_and_log_level()
635 #[test]
639 .only() in explicit_root_span_is_root()
650 #[test]
657 .only() in explicit_root_span_is_root_regardless_of_ctx()
670 #[test]
679 .only() in explicit_child()
691 #[test]
700 .only() in explicit_child_at_levels()
716 #[test]
728 .only() in explicit_child_regardless_of_ctx()
741 #[test]
745 .only() in contextual_root()
756 #[test]
767 .only() in contextual_child()
780 #[test]
787 .only(), in display_shorthand()
790 .only() in display_shorthand()
800 #[test]
807 .only(), in debug_shorthand()
810 .only() in debug_shorthand()
820 #[test]
828 .only(), in both_shorthands()
831 .only() in both_shorthands()
841 #[test]
850 .only(), in constant_field_name()
853 .only() in constant_field_name()