(target: str)
| 171 | |
| 172 | |
| 173 | def expected_properties(target: str) -> tuple[str, str, str, str]: |
| 174 | binary = "codebase-memory-mcp.exe" if target.startswith("windows-") else "codebase-memory-mcp" |
| 175 | file_format = "pe" if target.startswith("windows-") else "macho" if target.startswith("darwin-") else "elf" |
| 176 | architecture = target.split("-")[1] |
| 177 | linkage = ( |
| 178 | "portable" |
| 179 | if target.endswith("-portable") |
| 180 | else "dynamic" |
| 181 | if target.startswith("linux-") |
| 182 | else "native" |
| 183 | ) |
| 184 | return binary, file_format, architecture, linkage |
| 185 | |
| 186 | |
| 187 | def sha256_file(path: pathlib.Path, *, expected_size: int) -> str: |
no outgoing calls
no test coverage detected