(name: str, value: Optional[str])
| 138 | |
| 139 | @staticmethod |
| 140 | def _fts_string(name: str, value: Optional[str]) -> str: |
| 141 | if value is None: |
| 142 | return "" |
| 143 | if not isinstance(value, str): |
| 144 | raise ValueError(f"Fts {name} must be a string") |
| 145 | return value if value.strip() else "" |
| 146 | |
| 147 | def _validate(self) -> None: |
| 148 | if not isinstance(self.field_name, str) or not self.field_name.strip(): |
no outgoing calls
no test coverage detected