MCPcopy Index your code
hub / github.com/ipython/ipython / test_outer_name

Function test_outer_name

tests/test_tokenutil.py:116–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115
116def test_outer_name():
117 expect_token("x", "|x + foo(a, b) + y + z")
118 expect_token("x", "x| + foo(a, b) + y + z")
119 expect_token("x", "x |+ foo(a, b) + y + z")
120 expect_token("x", "x +| foo(a, b) + y + z")
121 expect_token("foo", "x + |foo(a, b) + y + z")
122 expect_token("a", "x + foo(|a, b) + y + z")
123 expect_token("foo", "x + foo(a|, b) + y + z")
124 expect_token("foo", "x + foo(a, b)| + y + z")
125 expect_token("foo", "x + foo(a, b) |+ y + z")
126 expect_token("foo", "x + foo(a, b) +| y + z")
127 expect_token("y", "x + foo(a, b) + |y + z")
128 expect_token("y", "x + foo(a, b) + y| + z")
129 expect_token("y", "x + foo(a, b) + y |+ z")
130 expect_token("y", "x + foo(a, b) + y +| z")
131 expect_token("z", "x + foo(a, b) + y + |z")
132
133
134def test_attrs():

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…