MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_enum_to_int

Function test_enum_to_int

tests/test_enum.py:225–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224
225def test_enum_to_int():
226 m.test_enum_to_int(m.Flags.Read)
227 m.test_enum_to_int(m.ClassWithUnscopedEnum.EMode.EFirstMode)
228 m.test_enum_to_int(m.ScopedCharEnum.Positive)
229 m.test_enum_to_int(m.ScopedBoolEnum.TRUE)
230 m.test_enum_to_uint(m.Flags.Read)
231 m.test_enum_to_uint(m.ClassWithUnscopedEnum.EMode.EFirstMode)
232 m.test_enum_to_uint(m.ScopedCharEnum.Positive)
233 m.test_enum_to_uint(m.ScopedBoolEnum.TRUE)
234 m.test_enum_to_long_long(m.Flags.Read)
235 m.test_enum_to_long_long(m.ClassWithUnscopedEnum.EMode.EFirstMode)
236 m.test_enum_to_long_long(m.ScopedCharEnum.Positive)
237 m.test_enum_to_long_long(m.ScopedBoolEnum.TRUE)
238
239
240def test_duplicate_enum_name():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected