src/compiler/native_contracts.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 // Trusted toolchain declarations, shared by compiler queries and the C emitter. 2 // Fixed host signatures and closed wrapper grants. This grants no user FFI. 3 pub record NativeOwner { module_path: Str, function_name: Str } 4 5 pub enum NativeResult { 6 NativeValue(Str), 7 NativeFallible(Str, Str) 8 } 9 10 pub record NativeContract { 11 name: Str, 12 inputs: [Str], 13 result: NativeResult, 14 is_async: Bool, 15 is_pure: Bool, 16 owners: [NativeOwner], 17 callback: Str, 18 dispatch: Str, 19 lifecycle: Str, 20 platform: Str 21 } 22 23 pub pure native_contracts(): [NativeContract] { 24 [ 25 NativeContract("http_stream_open_typed", ["Str", "Nat", "Bool", "Bytes", "Nat", "Duration"], NativeFallible("HttpStream", "Str"), false, false, 26 [NativeOwner("network/http_stream.panack", "open")], 27 "http_stream_typed_call", "BUILTIN_ORDINARY", "create", "http_transport"), 28 NativeContract("http_stream_read_typed", ["HttpStream"], NativeFallible("Bytes", "Str"), false, false, 29 [NativeOwner("network/http_stream.panack", "read")], 30 "http_stream_typed_call", "BUILTIN_ORDINARY", "read", "http_transport"), 31 NativeContract("http_stream_close_typed", ["HttpStream"], NativeFallible("Unit", "Str"), false, false, 32 [NativeOwner("network/http_stream.panack", "close")], 33 "http_stream_typed_call", "BUILTIN_ORDINARY", "close", "http_transport"), 34 NativeContract("http_stream_open_async", ["Str", "Nat", "Bool", "Bytes", "Nat", "Duration"], NativeFallible("HttpStream", "Str"), true, false, 35 [NativeOwner("network/http_stream/async.panack", "open")], 36 "async_service_only", "BUILTIN_HTTP_STREAM_OPEN", "create", "http_transport"), 37 NativeContract("http_stream_read_async", ["HttpStream"], NativeFallible("Bytes", "Str"), true, false, 38 [NativeOwner("network/http_stream/async.panack", "read")], 39 "async_service_only", "BUILTIN_HTTP_STREAM_READ", "read", "http_transport"), 40 NativeContract("http_stream_close_async", ["HttpStream"], NativeFallible("Unit", "Str"), true, false, 41 [NativeOwner("network/http_stream/async.panack", "close")], 42 "async_service_only", "BUILTIN_HTTP_STREAM_CLOSE", "close", "http_transport"), 43 NativeContract("http_stream_open", ["Str", "Nat", "Bool", "Bytes", "Nat", "Nat"], NativeFallible("Nat", "Str"), false, false, 44 [NativeOwner("http_stream.panack", "open")], 45 "http_stream_call", "BUILTIN_ORDINARY", "create", "http_transport"), 46 NativeContract("http_stream_read", ["Nat"], NativeFallible("Bytes", "Str"), false, false, 47 [NativeOwner("http_stream.panack", "read")], 48 "http_stream_call", "BUILTIN_ORDINARY", "read", "http_transport"), 49 NativeContract("http_stream_close", ["Nat"], NativeFallible("Unit", "Str"), false, false, 50 [NativeOwner("http_stream.panack", "close")], 51 "http_stream_call", "BUILTIN_ORDINARY", "close", "http_transport"), 52 NativeContract("stage_create_async", ["Path"], NativeFallible("DirectoryStage", "HostError"), true, false, 53 [NativeOwner("filesystem/staging/async.panack", "create")], 54 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "create", "filesystem_staging"), 55 NativeContract("stage_path_async", ["DirectoryStage"], NativeFallible("Path", "HostError"), true, false, 56 [NativeOwner("filesystem/staging/async.panack", "path")], 57 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "filesystem_staging"), 58 NativeContract("stage_directory_async", ["DirectoryStage", "Path"], NativeFallible("Unit", "HostError"), true, false, 59 [NativeOwner("filesystem/staging/async.panack", "create_directory")], 60 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem_staging"), 61 NativeContract("stage_write_async", ["DirectoryStage", "Path", "Bytes", "Nat"], NativeFallible("Unit", "HostError"), true, false, 62 [NativeOwner("filesystem/staging/async.panack", "write_chunk")], 63 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem_staging"), 64 NativeContract("stage_symlink_async", ["DirectoryStage", "Path", "Path"], NativeFallible("Unit", "HostError"), true, false, 65 [NativeOwner("filesystem/staging/async.panack", "create_symlink")], 66 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem_staging"), 67 NativeContract("stage_publish_async", ["DirectoryStage", "Path", "Bool"], NativeFallible("Unit", "HostError"), true, false, 68 [NativeOwner("filesystem/staging/async.panack", "publish")], 69 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "publish", "filesystem_staging"), 70 NativeContract("stage_discard_async", ["DirectoryStage"], NativeFallible("Unit", "HostError"), true, false, 71 [NativeOwner("filesystem/staging/async.panack", "discard")], 72 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "close", "filesystem_staging"), 73 NativeContract("stage_create", ["Path"], NativeFallible("DirectoryStage", "HostError"), false, false, 74 [NativeOwner("filesystem/staging.panack", "create")], 75 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "create", "filesystem_staging"), 76 NativeContract("stage_path", ["DirectoryStage"], NativeFallible("Path", "HostError"), false, false, 77 [NativeOwner("filesystem/staging.panack", "path")], 78 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "read", "filesystem_staging"), 79 NativeContract("stage_directory", ["DirectoryStage", "Path"], NativeFallible("Unit", "HostError"), false, false, 80 [NativeOwner("filesystem/staging.panack", "create_directory")], 81 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 82 NativeContract("stage_write", ["DirectoryStage", "Path", "Bytes", "Nat"], NativeFallible("Unit", "HostError"), false, false, 83 [NativeOwner("filesystem/staging.panack", "write_chunk")], 84 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 85 NativeContract("stage_symlink", ["DirectoryStage", "Path", "Path"], NativeFallible("Unit", "HostError"), false, false, 86 [NativeOwner("filesystem/staging.panack", "create_symlink")], 87 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 88 NativeContract("stage_publish", ["DirectoryStage", "Path", "Bool"], NativeFallible("Unit", "HostError"), false, false, 89 [NativeOwner("filesystem/staging.panack", "publish")], 90 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "publish", "filesystem_staging"), 91 NativeContract("stage_discard", ["DirectoryStage"], NativeFallible("Unit", "HostError"), false, false, 92 [NativeOwner("filesystem/staging.panack", "discard")], 93 "filesystem_stage_resource_call", "BUILTIN_ORDINARY", "close", "filesystem_staging"), 94 NativeContract("fs_stage_begin", ["Path"], NativeFallible("Nat", "HostError"), false, false, 95 [NativeOwner("filesystem_stage.panack", "begin")], 96 "filesystem_stage_call", "BUILTIN_ORDINARY", "create", "filesystem_staging"), 97 NativeContract("fs_stage_path", ["Nat"], NativeFallible("Path", "HostError"), false, false, 98 [NativeOwner("filesystem_stage.panack", "path")], 99 "filesystem_stage_call", "BUILTIN_ORDINARY", "read", "filesystem_staging"), 100 NativeContract("fs_stage_directory", ["Nat", "Path"], NativeFallible("Unit", "HostError"), false, false, 101 [NativeOwner("filesystem_stage.panack", "directory")], 102 "filesystem_stage_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 103 NativeContract("fs_stage_write", ["Nat", "Path", "Bytes", "Nat"], NativeFallible("Unit", "HostError"), false, false, 104 [NativeOwner("filesystem_stage.panack", "write")], 105 "filesystem_stage_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 106 NativeContract("fs_stage_symlink", ["Nat", "Path", "Path"], NativeFallible("Unit", "HostError"), false, false, 107 [NativeOwner("filesystem_stage.panack", "symlink")], 108 "filesystem_stage_call", "BUILTIN_ORDINARY", "write", "filesystem_staging"), 109 NativeContract("fs_stage_publish", ["Nat", "Path", "Bool"], NativeFallible("Unit", "HostError"), false, false, 110 [NativeOwner("filesystem_stage.panack", "publish")], 111 "filesystem_stage_call", "BUILTIN_ORDINARY", "publish", "filesystem_staging"), 112 NativeContract("fs_stage_close", ["Nat"], NativeFallible("Unit", "HostError"), false, false, 113 [NativeOwner("filesystem_stage.panack", "close")], 114 "filesystem_stage_call", "BUILTIN_ORDINARY", "close", "filesystem_staging"), 115 NativeContract("sha256_create", [], NativeFallible("Sha256Context", "HostError"), false, false, 116 [NativeOwner("digest/sha256.panack", "create")], 117 "digest_resource_call", "BUILTIN_ORDINARY", "create", "cpu_resource"), 118 NativeContract("sha256_update", ["Sha256Context", "Bytes"], NativeFallible("Unit", "HostError"), false, false, 119 [NativeOwner("digest/sha256.panack", "update")], 120 "digest_resource_call", "BUILTIN_ORDINARY", "update", "cpu_resource"), 121 NativeContract("sha256_finish", ["Sha256Context"], NativeFallible("Bytes", "HostError"), false, false, 122 [NativeOwner("digest/sha256.panack", "finish")], 123 "digest_resource_call", "BUILTIN_ORDINARY", "finish", "cpu_resource"), 124 NativeContract("sha256_close", ["Sha256Context"], NativeFallible("Unit", "HostError"), false, false, 125 [NativeOwner("digest/sha256.panack", "close")], 126 "digest_resource_call", "BUILTIN_ORDINARY", "close", "cpu_resource"), 127 NativeContract("sha256_create_async", [], NativeFallible("Sha256Context", "HostError"), true, false, 128 [NativeOwner("digest/sha256/async.panack", "create")], 129 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "create", "cpu_resource"), 130 NativeContract("sha256_update_async", ["Sha256Context", "Bytes"], NativeFallible("Unit", "HostError"), true, false, 131 [NativeOwner("digest/sha256/async.panack", "update")], 132 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "update", "cpu_resource"), 133 NativeContract("sha256_finish_async", ["Sha256Context"], NativeFallible("Bytes", "HostError"), true, false, 134 [NativeOwner("digest/sha256/async.panack", "finish")], 135 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "finish", "cpu_resource"), 136 NativeContract("sha256_close_async", ["Sha256Context"], NativeFallible("Unit", "HostError"), true, false, 137 [NativeOwner("digest/sha256/async.panack", "close")], 138 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "close", "cpu_resource"), 139 NativeContract("digest_sha256_open", [], NativeFallible("Nat", "HostError"), false, false, 140 [NativeOwner("digest.panack", "sha256_open")], 141 "digest_call", "BUILTIN_ORDINARY", "create", "cpu_resource"), 142 NativeContract("digest_update", ["Nat", "Bytes"], NativeFallible("Unit", "HostError"), false, false, 143 [NativeOwner("digest.panack", "update")], 144 "digest_call", "BUILTIN_ORDINARY", "update", "cpu_resource"), 145 NativeContract("digest_finish", ["Nat"], NativeFallible("Bytes", "HostError"), false, false, 146 [NativeOwner("digest.panack", "finish")], 147 "digest_call", "BUILTIN_ORDINARY", "finish", "cpu_resource"), 148 NativeContract("digest_close", ["Nat"], NativeFallible("Unit", "HostError"), false, false, 149 [NativeOwner("digest.panack", "close")], 150 "digest_call", "BUILTIN_ORDINARY", "close", "cpu_resource"), 151 NativeContract("gzip_decoder_create", ["Nat"], NativeFallible("GzipDecoder", "HostError"), false, false, 152 [NativeOwner("compression/gzip.panack", "create_decoder")], 153 "gzip_resource_call", "BUILTIN_ORDINARY", "create", "cpu_resource"), 154 NativeContract("gzip_decoder_decode", ["GzipDecoder", "Bytes", "Bool"], NativeFallible("GzipChunk", "HostError"), false, false, 155 [NativeOwner("compression/gzip.panack", "decode_chunk")], 156 "gzip_resource_call", "BUILTIN_ORDINARY", "decode", "cpu_resource"), 157 NativeContract("gzip_decoder_close", ["GzipDecoder"], NativeFallible("Unit", "HostError"), false, false, 158 [NativeOwner("compression/gzip.panack", "close")], 159 "gzip_resource_call", "BUILTIN_ORDINARY", "close", "cpu_resource"), 160 NativeContract("gzip_decoder_create_async", ["Nat"], NativeFallible("GzipDecoder", "HostError"), true, false, 161 [NativeOwner("compression/gzip/async.panack", "create_decoder")], 162 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "create", "cpu_resource"), 163 NativeContract("gzip_decoder_decode_async", ["GzipDecoder", "Bytes", "Bool"], NativeFallible("GzipChunk", "HostError"), true, false, 164 [NativeOwner("compression/gzip/async.panack", "decode_chunk")], 165 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "decode", "cpu_resource"), 166 NativeContract("gzip_decoder_close_async", ["GzipDecoder"], NativeFallible("Unit", "HostError"), true, false, 167 [NativeOwner("compression/gzip/async.panack", "close")], 168 "async_service_only", "BUILTIN_CPU_RESOURCE_ASYNC", "close", "cpu_resource"), 169 NativeContract("gzip_open", ["Nat"], NativeFallible("Nat", "HostError"), false, false, 170 [NativeOwner("gzip.panack", "open")], 171 "gzip_stream_call", "BUILTIN_ORDINARY", "create", "cpu_resource"), 172 NativeContract("gzip_step", ["Nat", "Bytes", "Bool"], NativeFallible("GzipChunk", "HostError"), false, false, 173 [NativeOwner("gzip.panack", "step")], 174 "gzip_stream_call", "BUILTIN_ORDINARY", "decode", "cpu_resource"), 175 NativeContract("gzip_close", ["Nat"], NativeFallible("Unit", "HostError"), false, false, 176 [NativeOwner("gzip.panack", "close")], 177 "gzip_stream_call", "BUILTIN_ORDINARY", "close", "cpu_resource"), 178 NativeContract("fs_read_chunk", ["Path", "Nat", "Nat"], NativeFallible("Bytes", "HostError"), false, false, 179 [NativeOwner("bounded_filesystem.panack", "read_chunk")], 180 "filesystem_stage_call", "BUILTIN_ORDINARY", "read", "bounded_filesystem"), 181 NativeContract("fs_read_chunk_async", ["Path", "Nat", "Nat"], NativeFallible("Bytes", "HostError"), true, false, 182 [NativeOwner("filesystem/async.panack", "read_chunk")], 183 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "bounded_filesystem"), 184 NativeContract("fs_atomic_write", ["Path", "Bytes"], NativeFallible("Unit", "HostError"), false, false, 185 [NativeOwner("bounded_filesystem.panack", "atomic_write")], 186 "filesystem_stage_call", "BUILTIN_ORDINARY", "write", "bounded_filesystem"), 187 NativeContract("fs_atomic_write_async", ["Path", "Bytes"], NativeFallible("Unit", "HostError"), true, false, 188 [NativeOwner("filesystem/async.panack", "write_atomic")], 189 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "bounded_filesystem"), 190 NativeContract("fs_read_link", ["Path", "Path"], NativeFallible("Bytes", "HostError"), false, false, 191 [NativeOwner("bounded_filesystem.panack", "read_link")], 192 "filesystem_stage_call", "BUILTIN_ORDINARY", "read", "bounded_filesystem"), 193 NativeContract("fs_read_link_async", ["Path", "Path"], NativeFallible("Bytes", "HostError"), true, false, 194 [NativeOwner("filesystem/confined/async.panack", "read_link")], 195 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "bounded_filesystem"), 196 NativeContract("fs_root_identity", ["Path"], NativeFallible("FilesystemRootIdentity", "HostError"), false, false, 197 [NativeOwner("filesystem/confined.panack", "root_identity")], 198 "host_capability_call", "BUILTIN_ORDINARY", "read", "confined_filesystem"), 199 NativeContract("fs_root_identity_async", ["Path"], NativeFallible("FilesystemRootIdentity", "HostError"), true, false, 200 [NativeOwner("async_filesystem.panack", "root_identity")], 201 "async_service_only", "BUILTIN_FS_ROOT_IDENTITY_ASYNC", "read", "confined_filesystem"), 202 NativeContract("fs_read_beneath", ["Path", "Path", "Nat"], NativeFallible("FilesystemRootRead", "HostError"), false, false, 203 [NativeOwner("package_filesystem.panack", "read_beneath")], 204 "host_capability_call", "BUILTIN_ORDINARY", "read", "confined_filesystem"), 205 NativeContract("fs_read_beneath_async", ["Path", "Path", "Nat"], NativeFallible("FilesystemRootRead", "HostError"), true, false, 206 [NativeOwner("async_filesystem.panack", "read_beneath")], 207 "async_service_only", "BUILTIN_FS_READ_BENEATH_ASYNC", "read", "confined_filesystem"), 208 NativeContract("fs_directories_overlap", ["Path", "Path"], NativeFallible("Bool", "HostError"), false, false, 209 [NativeOwner("package_filesystem.panack", "directories_overlap")], 210 "host_capability_call", "BUILTIN_ORDINARY", "read", "confined_filesystem"), 211 NativeContract("fs_directories_overlap_async", ["Path", "Path"], NativeFallible("Bool", "HostError"), true, false, 212 [NativeOwner("package_filesystem/async.panack", "directories_overlap")], 213 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "confined_filesystem"), 214 NativeContract("fs_metadata", ["Path"], NativeFallible("FileMetadata", "HostError"), false, false, 215 [NativeOwner("filesystem.panack", "metadata"), NativeOwner("testing_files.panack", "discover_fixtures")], 216 "host_capability_call", "BUILTIN_ORDINARY", "read", "filesystem"), 217 NativeContract("fs_metadata_async", ["Path"], NativeFallible("FileMetadata", "HostError"), true, false, 218 [NativeOwner("filesystem/async.panack", "metadata")], 219 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "filesystem"), 220 NativeContract("fs_read", ["Path", "Nat"], NativeFallible("Bytes", "HostError"), false, false, 221 [NativeOwner("filesystem.panack", "read")], 222 "host_capability_call", "BUILTIN_ORDINARY", "read", "filesystem"), 223 NativeContract("fs_read_async", ["Path", "Nat"], NativeFallible("Bytes", "HostError"), true, false, 224 [NativeOwner("filesystem/async.panack", "read")], 225 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "filesystem"), 226 NativeContract("fs_write", ["Path", "Bytes"], NativeFallible("Unit", "HostError"), false, false, 227 [NativeOwner("filesystem.panack", "write")], 228 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 229 NativeContract("fs_write_async", ["Path", "Bytes"], NativeFallible("Unit", "HostError"), true, false, 230 [NativeOwner("filesystem/async.panack", "write")], 231 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 232 NativeContract("fs_list", ["Path"], NativeFallible("[Path]", "HostError"), false, false, 233 [NativeOwner("filesystem.panack", "list_directory"), NativeOwner("testing_files.panack", "discover_fixtures")], 234 "host_capability_call", "BUILTIN_ORDINARY", "read", "filesystem"), 235 NativeContract("fs_list_async", ["Path"], NativeFallible("[Path]", "HostError"), true, false, 236 [NativeOwner("filesystem/async.panack", "list_directory")], 237 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "read", "filesystem"), 238 NativeContract("fs_remove_file", ["Path"], NativeFallible("Unit", "HostError"), false, false, 239 [NativeOwner("filesystem.panack", "remove_file")], 240 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 241 NativeContract("fs_remove_file_async", ["Path"], NativeFallible("Unit", "HostError"), true, false, 242 [NativeOwner("filesystem/async.panack", "remove_file")], 243 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 244 NativeContract("fs_remove_directory", ["Path"], NativeFallible("Unit", "HostError"), false, false, 245 [NativeOwner("filesystem.panack", "remove_directory"), NativeOwner("testing_files.panack", "$owned$TestWorkspace$remove_empty")], 246 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 247 NativeContract("fs_remove_directory_async", ["Path"], NativeFallible("Unit", "HostError"), true, false, 248 [NativeOwner("filesystem/async.panack", "remove_directory")], 249 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 250 NativeContract("fs_create_directory", ["Path"], NativeFallible("Unit", "HostError"), false, false, 251 [NativeOwner("filesystem.panack", "create_directory")], 252 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 253 NativeContract("fs_create_directory_async", ["Path"], NativeFallible("Unit", "HostError"), true, false, 254 [NativeOwner("filesystem/async.panack", "create_directory")], 255 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 256 NativeContract("fs_temp_directory", ["Path"], NativeFallible("Path", "HostError"), false, false, 257 [NativeOwner("filesystem.panack", "temp_directory"), NativeOwner("testing_files.panack", "workspace_create")], 258 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 259 NativeContract("fs_temp_directory_async", ["Path"], NativeFallible("Path", "HostError"), true, false, 260 [NativeOwner("filesystem/async.panack", "temp_directory")], 261 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 262 NativeContract("fs_temp_file", ["Path"], NativeFallible("Path", "HostError"), false, false, 263 [NativeOwner("filesystem.panack", "temp_file")], 264 "host_capability_call", "BUILTIN_ORDINARY", "write", "filesystem"), 265 NativeContract("fs_temp_file_async", ["Path"], NativeFallible("Path", "HostError"), true, false, 266 [NativeOwner("filesystem/async.panack", "temp_file")], 267 "async_service_only", "BUILTIN_FILESYSTEM_ASYNC", "write", "filesystem"), 268 NativeContract("console_input", ["Nat"], NativeFallible("Option[Bytes]", "HostError"), false, false, 269 [NativeOwner("console.panack", "read")], 270 "console_input_call", "BUILTIN_ORDINARY", "read", "console"), 271 NativeContract("console_output", ["Str", "Bool", "Bool"], NativeFallible("Unit", "HostError"), false, false, 272 [NativeOwner("console.panack", "write"), NativeOwner("console.panack", "write_line"), NativeOwner("console.panack", "write_error"), NativeOwner("console.panack", "write_error_line")], 273 "console_output_call", "BUILTIN_ORDINARY", "write", "console"), 274 NativeContract("console_input_async", ["Nat"], NativeFallible("Option[Bytes]", "HostError"), true, false, 275 [NativeOwner("console/async.panack", "read")], 276 "async_service_only", "BUILTIN_CONSOLE_INPUT_ASYNC", "read", "console"), 277 NativeContract("console_output_async", ["Str", "Bool", "Bool"], NativeFallible("Unit", "HostError"), true, false, 278 [NativeOwner("console/async.panack", "write"), NativeOwner("console/async.panack", "write_line"), NativeOwner("console/async.panack", "write_error"), NativeOwner("console/async.panack", "write_error_line")], 279 "async_service_only", "BUILTIN_CONSOLE_OUTPUT_ASYNC", "write", "console"), 280 NativeContract("process_run", ["Path", "[Str]", "Bytes", "Path", "[Str]", "Duration", "Nat"], NativeFallible("ProcessOutput", "HostError"), false, false, 281 [NativeOwner("process/legacy.panack", "run")], 282 "host_capability_call", "BUILTIN_PROCESS_RUN", "execute", "process"), 283 NativeContract("process_run_isolated", ["Path", "[Str]", "Bytes", "Path", "[Str]", "Duration", "Nat"], NativeFallible("ProcessOutput", "HostError"), false, false, 284 [NativeOwner("process/legacy.panack", "run_isolated")], 285 "host_capability_call", "BUILTIN_ORDINARY", "execute", "process"), 286 NativeContract("process_run_async", ["Path", "[Str]", "Bytes", "Path", "[Str]", "Duration", "Nat"], NativeFallible("ProcessOutput", "HostError"), true, false, 287 [NativeOwner("process/async.panack", "run")], 288 "async_service_only", "BUILTIN_PROCESS_RUN_ASYNC", "execute", "process"), 289 NativeContract("process_run_isolated_async", ["Path", "[Str]", "Bytes", "Path", "[Str]", "Duration", "Nat"], NativeFallible("ProcessOutput", "HostError"), true, false, 290 [NativeOwner("process/async.panack", "run")], 291 "async_service_only", "BUILTIN_PROCESS_RUN_ASYNC", "execute", "process"), 292 NativeContract("host_sleep", ["Duration"], NativeFallible("Unit", "HostError"), false, false, 293 [NativeOwner("time.panack", "sleep"), NativeOwner("host.panack", "sleep")], 294 "host_capability_call", "BUILTIN_ORDINARY", "wait", "time"), 295 NativeContract("instant_now", [], NativeFallible("Instant", "ClockError"), false, false, 296 [NativeOwner("time.panack", "now")], 297 "host_type_call", "BUILTIN_ORDINARY", "read", "time"), 298 NativeContract("host_sleep_async", ["Duration"], NativeFallible("Unit", "HostError"), true, false, 299 [NativeOwner("time/async.panack", "sleep")], 300 "async_service_only", "BUILTIN_HOST_SLEEP_ASYNC", "wait", "time"), 301 NativeContract("instant_now_async", [], NativeFallible("Instant", "ClockError"), true, false, 302 [NativeOwner("time/async.panack", "now")], 303 "async_service_only", "BUILTIN_INSTANT_NOW_ASYNC", "read", "time"), 304 NativeContract("environment_get", ["Str"], NativeValue("Str"), false, false, 305 [NativeOwner("environment.panack", "get")], 306 "host_call", "BUILTIN_ORDINARY", "read", "environment"), 307 NativeContract("environment_has", ["Str"], NativeValue("Bool"), false, false, 308 [NativeOwner("environment.panack", "get")], 309 "host_call", "BUILTIN_ORDINARY", "read", "environment"), 310 NativeContract("environment_lookup_async", ["Str"], NativeValue("Option[Str]"), true, false, 311 [NativeOwner("environment/async.panack", "get")], 312 "async_service_only", "BUILTIN_ENVIRONMENT_LOOKUP_ASYNC", "read", "environment"), 313 NativeContract("host_arguments_async", [], NativeValue("[Str]"), true, false, 314 [NativeOwner("async_host.panack", "arguments")], 315 "async_service_only", "BUILTIN_HOST_ARGUMENTS_ASYNC", "read", "host"), 316 NativeContract("host_stdout_async", ["Str"], NativeFallible("Unit", "HostError"), true, false, 317 [NativeOwner("async_host.panack", "stdout")], 318 "async_service_only", "BUILTIN_HOST_STDOUT_ASYNC", "write", "host"), 319 NativeContract("host_stderr_async", ["Str"], NativeFallible("Unit", "HostError"), true, false, 320 [NativeOwner("async_host.panack", "stderr")], 321 "async_service_only", "BUILTIN_HOST_STDERR_ASYNC", "write", "host"), 322 NativeContract("host_exit_async", ["Nat"], NativeValue("Unit"), true, false, 323 [NativeOwner("async_host.panack", "exit")], 324 "async_service_only", "BUILTIN_HOST_EXIT_ASYNC", "exit", "host"), 325 NativeContract("sha256_hash", ["Bytes"], NativeValue("Bytes"), false, true, 326 [NativeOwner("digest/sha256.panack", "hash")], 327 "digest_hash_call", "BUILTIN_ORDINARY", "value", "host_value"), 328 NativeContract("host_decode_utf8", ["Bytes"], NativeFallible("Str", "HostError"), false, true, 329 [NativeOwner("encoding/utf8.panack", "decode"), NativeOwner("host.panack", "decode_utf8")], 330 "host_capability_call", "BUILTIN_ORDINARY", "value", "host_value"), 331 NativeContract("path_from_text", ["Str"], NativeFallible("Path", "PathError"), false, true, 332 [NativeOwner("path.panack", "from_text")], 333 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 334 NativeContract("path_from_native", ["Bytes"], NativeFallible("Path", "PathError"), false, true, 335 [NativeOwner("path.panack", "from_native")], 336 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 337 NativeContract("path_to_text", ["Path"], NativeFallible("Str", "PathError"), false, true, 338 [NativeOwner("core.panack", "$owned$Path$to_text")], 339 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 340 NativeContract("path_native_bytes", ["Path"], NativeValue("Bytes"), false, true, 341 [NativeOwner("core.panack", "$owned$Path$native_bytes")], 342 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 343 NativeContract("path_display", ["Path"], NativeValue("Str"), false, true, 344 [NativeOwner("core.panack", "$owned$Path$display")], 345 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 346 NativeContract("path_absolute", ["Path"], NativeValue("Bool"), false, true, 347 [NativeOwner("core.panack", "$owned$Path$is_absolute")], 348 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 349 NativeContract("path_append", ["Path","Path"], NativeFallible("Path", "PathError"), false, true, 350 [NativeOwner("core.panack", "$owned$Path$join")], 351 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 352 NativeContract("path_directory", ["Path"], NativeValue("Path"), false, true, 353 [NativeOwner("core.panack", "$owned$Path$directory")], 354 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 355 NativeContract("path_filename", ["Path"], NativeValue("Option[Path]"), false, true, 356 [NativeOwner("core.panack", "$owned$Path$filename")], 357 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 358 NativeContract("path_current", [], NativeValue("Path"), false, true, 359 [NativeOwner("path.panack", "current")], 360 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 361 NativeContract("duration_nanoseconds", ["Int"], NativeValue("Duration"), false, true, 362 [NativeOwner("time.panack", "from_nanoseconds"), NativeOwner("time.panack", "seconds"), NativeOwner("time.panack", "milliseconds"), NativeOwner("core.panack", "$owned$Duration$add"), NativeOwner("core.panack", "$owned$Duration$subtract"), NativeOwner("core.panack", "$owned$Duration$scale"), NativeOwner("core.panack", "$owned$Duration$divide"), NativeOwner("core.panack", "$owned$Duration$ratio")], 363 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 364 NativeContract("duration_from_seconds", ["Rat"], NativeFallible("Duration", "DurationError"), false, true, 365 [NativeOwner("time.panack", "from_seconds"), NativeOwner("core.panack", "$owned$Duration$divide")], 366 "host_type_call", "BUILTIN_ORDINARY", "value", "host_value"), 367 NativeContract("path_join", ["Str","Str"], NativeValue("Str"), false, true, 368 [NativeOwner("compiler_paths.panack", "join")], 369 "host_call", "BUILTIN_ORDINARY", "value", "host_value"), 370 NativeContract("path_suffix", ["Str"], NativeValue("Str"), false, true, 371 [NativeOwner("compiler_paths.panack", "suffix")], 372 "host_call", "BUILTIN_ORDINARY", "value", "host_value"), 373 NativeContract("path_parent", ["Str"], NativeValue("Str"), false, true, 374 [NativeOwner("compiler_paths.panack", "parent")], 375 "host_call", "BUILTIN_ORDINARY", "value", "host_value"), 376 NativeContract("path_is_absolute", ["Str"], NativeValue("Bool"), false, true, 377 [NativeOwner("compiler_paths.panack", "is_absolute")], 378 "host_call", "BUILTIN_ORDINARY", "value", "host_value"), 379 NativeContract("path_with_suffix", ["Str","Str"], NativeValue("Str"), false, true, 380 [NativeOwner("compiler_paths.panack", "with_suffix")], 381 "host_call", "BUILTIN_ORDINARY", "value", "host_value"), 382 NativeContract("path_resolve", ["Str"], NativeValue("Str"), false, false, 383 [NativeOwner("compiler_paths.panack", "resolve")], 384 "host_call", "BUILTIN_ORDINARY", "read", "legacy_host"), 385 NativeContract("command_args", [], NativeValue("[Str]"), false, false, 386 [NativeOwner("host.panack", "arguments")], 387 "host_call", "BUILTIN_ORDINARY", "read", "legacy_host"), 388 NativeContract("process_exit", ["Nat"], NativeValue("Void"), false, false, 389 [NativeOwner("host.panack", "exit")], 390 "host_call", "BUILTIN_PROCESS_EXIT", "exit", "legacy_host"), 391 NativeContract("read_file", ["Str"], NativeValue("Str"), false, false, 392 [NativeOwner("compiler_files.panack", "read_text")], 393 "host_call", "BUILTIN_ORDINARY", "read", "legacy_host"), 394 NativeContract("read_bytes", ["Str"], NativeValue("Bytes"), false, false, 395 [NativeOwner("compiler_files.panack", "read_file_bytes")], 396 "host_call", "BUILTIN_ORDINARY", "read", "legacy_host"), 397 NativeContract("write_bytes", ["Str","Bytes"], NativeValue("Void"), false, false, 398 [NativeOwner("compiler_files.panack", "write_file_bytes")], 399 "host_call", "BUILTIN_ORDINARY", "write", "legacy_host"), 400 NativeContract("file_exists", ["Str"], NativeValue("Bool"), false, false, 401 [NativeOwner("compiler_files.panack", "exists")], 402 "host_call", "BUILTIN_ORDINARY", "read", "legacy_host"), 403 NativeContract("http_bytes_slice", ["Bytes","Nat","Nat"], NativeValue("Bytes"), false, true, 404 [NativeOwner("bytes.panack", "slice"), NativeOwner("http_runtime.panack", "bytes_slice"), NativeOwner("core.panack", "$owned$Bytes$slice")], 405 "builtins_http_connection_call", "BUILTIN_ORDINARY", "value", "host_value") 406 ] 407 } 408 409 pub pure native_contract(name: Str): Option[NativeContract] { 410 mut found: Option[NativeContract] = None() 411 // Avoid constructing the family table for unrelated compiler queries. The 412 // emitter validates this namespace; a matching prefix alone grants nothing. 413 if name.starts_with("http_stream_") || name.starts_with("stage_") || 414 name.starts_with("fs_") || name.starts_with("sha256_") || 415 name.starts_with("digest_") || name.starts_with("gzip_") || 416 name.starts_with("console_") || name.starts_with("process_run") || 417 name.starts_with("host_") || name.starts_with("instant_now") || 418 name.starts_with("environment_") || name.starts_with("path_") || 419 name.starts_with("duration_") || name == "http_bytes_slice" || 420 name == "command_args" || name == "process_exit" || 421 name == "read_file" || name == "read_bytes" || name == "write_bytes" || 422 name == "file_exists" { 423 for contract in native_contracts() { 424 if contract.name == name { found = Some(contract) } 425 } 426 } 427 found 428 } 429 430 pub pure native_known(name: Str): Bool { 431 match native_contract(name) { 432 Some(contract) => true, 433 None() => false 434 } 435 } 436 437 pub pure native_async(name: Str): Bool { 438 match native_contract(name) { 439 Some(contract) => contract.is_async, 440 None() => false 441 } 442 } 443 444 pub pure native_owner(name: Str, module_path: Str, function_name: Str): Bool { 445 match native_contract(name) { 446 Some(contract) => { 447 mut allowed = false 448 for owner in contract.owners { 449 if owner.module_path == module_path && owner.function_name == function_name { 450 allowed = true 451 } 452 } 453 allowed 454 }, 455 None() => false 456 } 457 } 458 459 pub pure native_owner_module(name: Str, module_path: Str): Bool { 460 match native_contract(name) { 461 Some(contract) => { 462 mut allowed = false 463 for owner in contract.owners { 464 if owner.module_path == module_path { allowed = true } 465 } 466 allowed 467 }, 468 None() => false 469 } 470 } 471 472 pub pure native_result(contract: NativeContract): Str { 473 match contract.result { 474 NativeValue(value) => value, 475 NativeFallible(value, error) => "Result[" + value + "," + error + "]" 476 } 477 } 478 479 pub pure native_impure(name: Str): Bool { 480 match native_contract(name) { 481 Some(contract) => !contract.is_pure, 482 None() => false 483 } 484 } 485
Functions
[
{
"id": "declaration/3",
"name": "native_contracts",
"line": 23,
"state": "covered",
"entries": "23320"
},
{
"id": "declaration/4",
"name": "native_contract",
"line": 409,
"state": "covered",
"entries": "68014"
},
{
"id": "declaration/5",
"name": "native_known",
"line": 430,
"state": "covered",
"entries": "32166"
},
{
"id": "declaration/6",
"name": "native_async",
"line": 437,
"state": "covered",
"entries": "12541"
},
{
"id": "declaration/7",
"name": "native_owner",
"line": 444,
"state": "covered",
"entries": "6732"
},
{
"id": "declaration/8",
"name": "native_owner_module",
"line": 459,
"state": "covered",
"entries": "278"
},
{
"id": "declaration/9",
"name": "native_result",
"line": 472,
"state": "covered",
"entries": "165"
},
{
"id": "declaration/10",
"name": "native_impure",
"line": 479,
"state": "covered",
"entries": "12391"
}
]Source branch outcomes
[
{
"id": "declaration/4/statement/1/value/decision/true",
"outcome": "true",
"line": 413,
"state": "covered",
"hits": "23319"
},
{
"id": "declaration/4/statement/1/value/decision/false",
"outcome": "false",
"line": 413,
"state": "covered",
"hits": "44695"
},
{
"id": "declaration/4/statement/1/value/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "44712"
},
{
"id": "declaration/4/statement/1/value/condition/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "23302"
},
{
"id": "declaration/4/statement/1/value/condition/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "44729"
},
{
"id": "declaration/4/statement/1/value/condition/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "23285"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "44746"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "23268"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "44787"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "23227"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "44928"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "23086"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "45069"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "22945"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "46308"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "21706"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "56585"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "11429"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "65339"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "2675"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "65459"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "2555"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "65632"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "2382"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66184"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1830"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66298"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1716"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66382"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1632"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66503"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1511"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66571"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1443"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "66711"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "1303"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "67660"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "354"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 413,
"state": "covered",
"hits": "67892"
},
{
"id": "declaration/4/statement/1/value/condition/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 413,
"state": "covered",
"hits": "122"
},
{
"id": "declaration/4/statement/1/value/true/statement/0/decision/body",
"outcome": "body",
"line": 423,
"state": "covered",
"hits": "2961513"
},
{
"id": "declaration/4/statement/1/value/true/statement/0/decision/exit",
"outcome": "exit",
"line": 423,
"state": "covered",
"hits": "23319"
},
{
"id": "declaration/4/statement/1/value/true/statement/0/body/tail/decision/true",
"outcome": "true",
"line": 424,
"state": "covered",
"hits": "21657"
},
{
"id": "declaration/4/statement/1/value/true/statement/0/body/tail/decision/false",
"outcome": "false",
"line": 424,
"state": "covered",
"hits": "2939856"
},
{
"id": "declaration/5/tail/arm/0",
"outcome": "Some",
"line": 432,
"state": "covered",
"hits": "7287"
},
{
"id": "declaration/5/tail/arm/1",
"outcome": "None",
"line": 433,
"state": "covered",
"hits": "24879"
},
{
"id": "declaration/6/tail/arm/0",
"outcome": "Some",
"line": 439,
"state": "covered",
"hits": "3389"
},
{
"id": "declaration/6/tail/arm/1",
"outcome": "None",
"line": 440,
"state": "covered",
"hits": "9152"
},
{
"id": "declaration/7/tail/arm/0",
"outcome": "Some",
"line": 446,
"state": "covered",
"hits": "4708"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/decision/body",
"outcome": "body",
"line": 448,
"state": "covered",
"hits": "17498"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 448,
"state": "covered",
"hits": "4708"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 449,
"state": "covered",
"hits": "4553"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 449,
"state": "covered",
"hits": "12945"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 449,
"state": "covered",
"hits": "11359"
},
{
"id": "declaration/7/tail/arm/0/body/block/statement/1/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 449,
"state": "covered",
"hits": "6139"
},
{
"id": "declaration/7/tail/arm/1",
"outcome": "None",
"line": 455,
"state": "covered",
"hits": "2024"
},
{
"id": "declaration/8/tail/arm/0",
"outcome": "Some",
"line": 461,
"state": "covered",
"hits": "278"
},
{
"id": "declaration/8/tail/arm/0/body/block/statement/1/decision/body",
"outcome": "body",
"line": 463,
"state": "covered",
"hits": "403"
},
{
"id": "declaration/8/tail/arm/0/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 463,
"state": "covered",
"hits": "278"
},
{
"id": "declaration/8/tail/arm/0/body/block/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 464,
"state": "covered",
"hits": "201"
},
{
"id": "declaration/8/tail/arm/0/body/block/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 464,
"state": "covered",
"hits": "202"
},
{
"id": "declaration/8/tail/arm/1",
"outcome": "None",
"line": 468,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/9/tail/arm/0",
"outcome": "NativeValue",
"line": 474,
"state": "covered",
"hits": "50"
},
{
"id": "declaration/9/tail/arm/1",
"outcome": "NativeFallible",
"line": 475,
"state": "covered",
"hits": "115"
},
{
"id": "declaration/10/tail/arm/0",
"outcome": "Some",
"line": 481,
"state": "covered",
"hits": "3349"
},
{
"id": "declaration/10/tail/arm/1",
"outcome": "None",
"line": 482,
"state": "covered",
"hits": "9042"
}
]Reviewed declaration exclusions
[
{
"id": "declaration/0",
"reason": "record-declaration",
"line": 3
},
{
"id": "declaration/1",
"reason": "enum-declaration",
"line": 5
},
{
"id": "declaration/2",
"reason": "record-declaration",
"line": 10
}
]