Test that StructMeta properly handles struct options.
()
| 35 | |
| 36 | |
| 37 | def test_struct_meta_options(): |
| 38 | """Test that StructMeta properly handles struct options.""" |
| 39 | |
| 40 | class CustomStruct(metaclass=StructMeta, frozen=True): |
| 41 | x: int |
| 42 | |
| 43 | # Verify options were applied |
| 44 | instance = CustomStruct(x=1) |
| 45 | with pytest.raises(AttributeError): |
| 46 | instance.x = 2 # Should be frozen |
| 47 | |
| 48 | |
| 49 | def test_struct_meta_field_processing(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…