(value: int, archtype: QL_ARCH, ostype: QL_OS)
| 179 | |
| 180 | |
| 181 | def socket_ip_option_mapping(value: int, archtype: QL_ARCH, ostype: QL_OS) -> str: |
| 182 | socket_ip_option: Type[Enum] = { |
| 183 | QL_ARCH.X86: linux_socket_ip_options, |
| 184 | QL_ARCH.X8664: macos_socket_ip_options if ostype is QL_OS.MACOS else linux_socket_ip_options, |
| 185 | QL_ARCH.ARM: linux_socket_ip_options, |
| 186 | QL_ARCH.ARM64: macos_socket_ip_options if ostype is QL_OS.MACOS else linux_socket_ip_options, |
| 187 | QL_ARCH.MIPS: linux_mips_socket_ip_options |
| 188 | }[archtype] |
| 189 | |
| 190 | return socket_ip_option(value).name |
| 191 | |
| 192 | |
| 193 | def socket_option_mapping(value: int, archtype: QL_ARCH) -> str: |
no outgoing calls
no test coverage detected