MCPcopy Create free account
hub / github.com/apple/coremltools / IsCorrectData

Function IsCorrectData

mlmodel/tests/MILBlob/StorageWriterTests.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template <typename T>
118[[nodiscard]] bool IsCorrectData(const std::string& filePath, uint64_t offset, Util::Span<const T> expectedSpan)
119{
120 if constexpr (MILBlob::IsSubByteSized<T>::value) {
121 return IsCorrectSubByteData(filePath, offset, expectedSpan);
122 } else {
123 return IsCorrectDataImpl(filePath, offset, expectedSpan);
124 }
125}
126
127} // anonymous namespace
128

Callers

nothing calls this directly

Calls 2

IsCorrectSubByteDataFunction · 0.85
IsCorrectDataImplFunction · 0.85

Tested by

no test coverage detected