MCPcopy Create free account
hub / github.com/LUX-Core/lux / inArray

Function inArray

src/cpp-ethereum/test/libtesteth/ImportTest.cpp:457–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455
456template<class T>
457bool inArray(vector<T> const& _array, const T _val)
458{
459 for (size_t i = 0; i < _array.size(); i++)
460 if (_array[i] == _val)
461 return true;
462 return false;
463}
464
465void ImportTest::checkGeneralTestSection(json_spirit::mObject const& _expects, vector<size_t>& _errorTransactions, string const& _network) const
466{

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected