MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / test_version

Function test_version

libCacheSim/traceReader/customizedReader/vscsi.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54} vscsi_params_t;
55
56static inline bool test_version(const vscsi_version_e *test_buf,
57 vscsi_version_e version) {
58 for (int i = 0; i < MAX_TEST; i++) {
59 if (version != test_buf[i]) return (false);
60 }
61 return (true);
62}
63
64static inline vscsi_version_e to_vscsi_version(uint16_t ver) {
65 return ((vscsi_version_e)(ver >> 8));

Callers 1

test_vscsi_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected