MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_join_chain_1

Function test_join_chain_1

python/pathway/tests/test_common.py:4270–4304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4268
4269
4270def test_join_chain_1():
4271 edges1 = T(
4272 """
4273 u | v
4274 a | b
4275 b | c
4276 c | d
4277 d | e
4278 e | f
4279 f | g
4280 g | a
4281 """
4282 )
4283 edges2 = edges1.copy()
4284 edges3 = edges1.copy()
4285 path3 = (
4286 edges1.join(edges2, edges1.v == edges2.u)
4287 .join(edges3, edges2.v == edges3.u)
4288 .select(edges1.u, edges3.v)
4289 )
4290 assert_table_equality_wo_index(
4291 path3,
4292 T(
4293 """
4294 u | v
4295 a | d
4296 b | e
4297 c | f
4298 d | g
4299 e | a
4300 f | b
4301 g | c
4302 """
4303 ),
4304 )
4305
4306
4307def test_join_chain_2():

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
copyMethod · 0.45
selectMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected