MCPcopy Create free account
hub / github.com/AI45Lab/Code / artifact_store_limits_maps_to_rust_session_options

Function artifact_store_limits_maps_to_rust_session_options

sdk/node/src/lib.rs:5903–5916  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5901
5902 #[test]
5903 fn artifact_store_limits_maps_to_rust_session_options() {
5904 let opts = js_session_options_to_rust(Some(SessionOptions {
5905 artifact_store_limits: Some(ArtifactStoreLimits {
5906 max_artifacts: Some(3.0),
5907 max_bytes: Some(4096.0),
5908 }),
5909 ..Default::default()
5910 }))
5911 .unwrap();
5912
5913 let limits = opts.artifact_store_limits.expect("limits");
5914 assert_eq!(limits.max_artifacts, 3);
5915 assert_eq!(limits.max_bytes, 4096);
5916 }
5917
5918 #[test]
5919 fn artifact_store_limits_rejects_fractional_values() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80

Tested by

no test coverage detected