Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ test_rvalue_ref_param
Function
test_rvalue_ref_param
tests/test_methods_and_attributes.py:701–706 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
699
700
701
def
test_rvalue_ref_param():
702
r = m.RValueRefParam()
703
assert r.func1(
"123"
) == 3
704
assert r.func2(
"1234"
) == 4
705
assert r.func3(
"12345"
) == 5
706
assert r.func4(
"123456"
) == 6
707
708
709
def
test_is_setter():
Callers
nothing calls this directly
Calls
4
func1
Method · 0.95
func2
Method · 0.95
func3
Method · 0.95
func4
Method · 0.95
Tested by
no test coverage detected