MCPcopy Create free account
hub / github.com/comnik/declarative-dataflow / join_after_input

Function join_after_input

tests/registration_test.rs:76–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75#[test]
76fn join_after_input() {
77 timely::execute_directly(move |worker| {
78 let mut server = Server::<u64, u64>::new(Default::default());
79 let (send_results, results) = channel();
80
81 worker.dataflow::<u64, _, _>(|scope| {
82 server
83 .context
84 .internal
85 .create_transactable_attribute(
86 ":transfer/from",
87 AttributeConfig {
88 index_direction: IndexDirection::Both,
89 query_support: QuerySupport::Basic,
90 trace_slack: Some(Time::TxId(1)),
91 ..Default::default()
92 },
93 scope,
94 )
95 .unwrap();
96 server
97 .context
98 .internal
99 .create_transactable_attribute(
100 ":user/id",
101 AttributeConfig {
102 index_direction: IndexDirection::Both,
103 query_support: QuerySupport::Basic,
104 trace_slack: Some(Time::TxId(1)),
105 ..Default::default()
106 },
107 scope,
108 )
109 .unwrap();
110 });
111
112 server.advance_domain(None, 1).unwrap();
113
114 worker.step_while(|| server.is_any_outdated());
115
116 {
117 server
118 .transact(
119 vec![TxData::add(
120 1,
121 ":user/id",
122 String("123-456-789".to_string()),
123 )],
124 0,
125 0,
126 )
127 .unwrap();
128
129 server.advance_domain(None, 2).unwrap();
130
131 worker.step_while(|| server.is_any_outdated());
132 }
133

Callers

nothing calls this directly

Calls 7

ProjectClass · 0.85
JoinClass · 0.85
advance_domainMethod · 0.80
is_any_outdatedMethod · 0.80
test_singleMethod · 0.80
transactMethod · 0.45

Tested by

no test coverage detected