Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_stack
Function
test_stack
tests/test_stack.py:4–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
4
def
test_stack():
5
stack = Stack()
6
stack.push(
"foo"
)
7
stack.push(
"bar"
)
8
assert stack.top ==
"bar"
9
assert stack.pop() ==
"bar"
10
assert stack.top ==
"foo"
Callers
nothing calls this directly
Calls
3
push
Method · 0.95
Stack
Class · 0.90
pop
Method · 0.45
Tested by
no test coverage detected