MCPcopy Index your code
hub / github.com/AI45Lab/Code / artifact_store_limits_map_to_rust_session_options

Function artifact_store_limits_map_to_rust_session_options

sdk/python/src/lib.rs:7043–7054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7041
7042 #[test]
7043 fn artifact_store_limits_map_to_rust_session_options() {
7044 let mut session_options = PySessionOptions::new();
7045 session_options.artifact_store_limits = Some(PyArtifactStoreLimits {
7046 max_artifacts: 3,
7047 max_bytes: 4096,
7048 });
7049
7050 let opts = build_rust_session_options(session_options).unwrap();
7051 let limits = opts.artifact_store_limits.expect("limits");
7052 assert_eq!(limits.max_artifacts, 3);
7053 assert_eq!(limits.max_bytes, 4096);
7054 }
7055
7056 #[test]
7057 fn verification_reports_from_value_accepts_array_and_single_report() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80

Tested by

no test coverage detected