API Reference
Class
BenchmarkControlSetSerializer
Reads, writes, hashes, and validates named benchmark control sets.
Inheritance
- Object
- BenchmarkControlSetSerializer
Methods
public static String CalculateHash(BenchmarkControlSet controlSet) #Returns:
StringCalculates the canonical SHA-256 hash while excluding the mutable hash property.
Parameters
- controlSet TestimoX.Benchmarks.Execution.BenchmarkControlSet
public static BenchmarkControlSet Deserialize(String json, String sourceName = null) #Returns:
BenchmarkControlSetDeserializes and integrity-verifies a named control set from JSON.
Parameters
- json System.String
- sourceName System.String = null
public static BenchmarkControlSet Load(String path) #Returns:
BenchmarkControlSetLoads and integrity-verifies a named control set.
Parameters
- path System.String
public static Void Save(BenchmarkControlSet controlSet, String path) #Returns:
VoidValidates, hashes, and atomically saves a named control set.
Parameters
- controlSet TestimoX.Benchmarks.Execution.BenchmarkControlSet
- path System.String
public static String Serialize(BenchmarkControlSet controlSet) #Returns:
StringSerializes a named control set after refreshing its integrity hash.
Parameters
- controlSet TestimoX.Benchmarks.Execution.BenchmarkControlSet
public static Void Validate(BenchmarkControlSet controlSet, Boolean verifyHash) #Returns:
VoidValidates structure, uniqueness, and optional content integrity.
Parameters
- controlSet TestimoX.Benchmarks.Execution.BenchmarkControlSet
- verifyHash System.Boolean