Test nullable field.
(self)
| 97 | assert meta.uses_tag_id() |
| 98 | |
| 99 | def test_nullable_field(self): |
| 100 | """Test nullable field.""" |
| 101 | |
| 102 | @dataclass |
| 103 | class TestClass: |
| 104 | optional_name: Optional[str] = pyfory.field(0, nullable=True) |
| 105 | |
| 106 | meta = extract_field_meta(fields(TestClass)[0]) |
| 107 | assert meta.nullable is True |
| 108 | |
| 109 | def test_ref_field(self): |
| 110 | """Test ref tracking field.""" |
nothing calls this directly
no test coverage detected