(
limits: ArtifactStoreLimits,
)
| 2238 | } |
| 2239 | |
| 2240 | fn js_artifact_store_limits_to_rust( |
| 2241 | limits: ArtifactStoreLimits, |
| 2242 | ) -> napi::Result<a3s_code_core::tools::ArtifactStoreLimits> { |
| 2243 | let defaults = a3s_code_core::tools::ArtifactStoreLimits::default(); |
| 2244 | Ok(a3s_code_core::tools::ArtifactStoreLimits { |
| 2245 | max_artifacts: js_optional_usize( |
| 2246 | limits.max_artifacts, |
| 2247 | "artifactStoreLimits.maxArtifacts", |
| 2248 | defaults.max_artifacts, |
| 2249 | )?, |
| 2250 | max_bytes: js_optional_usize( |
| 2251 | limits.max_bytes, |
| 2252 | "artifactStoreLimits.maxBytes", |
| 2253 | defaults.max_bytes, |
| 2254 | )?, |
| 2255 | }) |
| 2256 | } |
| 2257 | |
| 2258 | fn verification_reports_from_value( |
| 2259 | reports: serde_json::Value, |
no test coverage detected