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

Function test_unwrap

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

Source from the content-addressed store, hash-verified

5827
5828
5829def test_unwrap():
5830 a = T(
5831 """
5832 foo
5833 1
5834 2
5835 3
5836 None
5837 """
5838 )
5839 result = a.filter(a.foo.is_not_none()).select(ret=pw.unwrap(pw.this.foo))
5840
5841 assert_table_equality(
5842 result,
5843 T(
5844 """
5845 ret
5846 1
5847 2
5848 3
5849 """
5850 ),
5851 )
5852
5853
5854def test_unwrap_with_nones():

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
is_not_noneMethod · 0.80
selectMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected