Test using StructMeta with Struct as a base class.
()
| 65 | |
| 66 | |
| 67 | def test_struct_meta_with_struct_base(): |
| 68 | """Test using StructMeta with Struct as a base class.""" |
| 69 | |
| 70 | class CustomStruct(Struct): |
| 71 | x: int |
| 72 | y: str |
| 73 | |
| 74 | # Verify the struct works as expected |
| 75 | instance = CustomStruct(x=1, y="test") |
| 76 | assert instance.x == 1 |
| 77 | assert instance.y == "test" |
| 78 | assert isinstance(instance, CustomStruct) |
| 79 | assert isinstance(CustomStruct, StructMeta) |
| 80 | |
| 81 | |
| 82 | def test_struct_meta_validation(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…