Benign rust 36 installs Download

eqiora-io-hdf5 0.1.0-alpha.9

“Eqiora L3: bounded native HDF5 file-image resolver and writer”

Archive ships a root-level test treeRust test marker or harness
SHA-2562ae79b715ea46e029fcd5c30905dd3f1656762712148b6e7cb4546d3610a07cb

Evidence

References an HDF5 container file writer.rs · lines 1–19
1use std::collections::BTreeSet;
2use std::ptr;
3
4use eqiora_core::Diagnostic;
5use hdf5_metno::{File, h5check};
6use hdf5_metno_sys::h5f::H5Fget_file_image;
7
8use crate::contract::{
9 Hdf5DatasetWrite, Hdf5RuntimeIdentity, Hdf5WriteLimits, Hdf5WriteValues, invalid_hdf5_export,
10};
11use crate::native_inspect::with_plugins_disabled;
12
13const MEMORY_FILE_NAME: &str = "eqiora-generated.h5";
14
15/// Complete deterministic in-memory HDF5 output plus the exact native stack
16/// that produced it.
17#[derive(Debug, Clone, PartialEq, Eq)]
18pub struct WrittenHdf5FileImage {
19 bytes …
References HDF5 or an HDF5 binding writer.rs · lines 224–227
224:50… VFD handle and a null output
225 // pointer with zero length is the documented size query.
226 h5check(unsafe { H5Fget_file_image(file.id(), ptr::null_mut(), 0) })
227 .map_err(|error| native_export_error("cannot size generated HDF5 file image", erro …
#[test] attribute hdf5.rs · lines 16–23
16:37… elds/flux", Hdf5ScalarType::F64, vec![2, 2]).unwrap(),
17 ]
18}
19
20#[test]
21fn resolves_one_audited_file_image_batch_in_request_order() {
22 let resolved = resolve_hdf5_file_image(
23 Hdf5FileImage …
imports std::os::raw::c_int native_inspect.rs · lines 1–18
1use eqiora_core::Diagnostic;
2use hdf5_metno::{Dataset, PropertyList, h5check};
3use hdf5_metno_sys::h5d::H5Dread;
4use hdf5_metno_sys::h5i::hid_t;
5use hdf5_metno_sys::h5p::H5P_DEFAULT;
6use hdf5_metno_sys::h5p::{H5Pget_external_count, H5Pget_nfilters};
7use hdf5_metno_sys::h5s::{
8 H5S_ALL, H5Sget_simple_extent_dims, H5Sget_simple_extent_ndims, H5Sis_simple,
9};
10use hdf5_metno_sys::h5t::{H5Tcommitted, H5Tequal};
11use std::os::raw::{c_int, c_uint};
12use std::ptr;
13
14use crate::contract::{Hdf5ScalarType, invalid_hdf5};
15
16unsafe extern "C" {
17 #[link_name = "H5PLget_loading_state"]
18 fn h5pl_get_loading_state(plugin_control_m …
imports super::* native_inspect.rs · lines 234–248
234:61… Diagnostic {
235 invalid_hdf5(format!("{context}: {error}"))
236}
237
238#[cfg(test)]
239mod tests {
240 use super::*;
241
242 #[test]
243 fn plugin_loading_state_is_restored_after_rejection() {
244 let before = plugin_loading_state();
245 let error = with_plugins_disabled(|| {
246 assert_eq!(plugin_loading_state(), 0);
247 Err::<(), _>(invalid_hdf5("deliberate rejection"))
248 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.