Skip to content

Commit

Permalink
core tests [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vo-nil committed Dec 12, 2024
1 parent a25cc62 commit f371ede
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crypto3/libs/marshalling/core/test/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,28 +79,28 @@ void resize(boost::array<T, ArraySize> &t, size_t count) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<TInput>::value, void>::type repack_2(TInput in, size_t result_size) {
typename std::enable_if<!detail::has_begin<TInput>::value, void>::type repack_2(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<TInput>::value, void>::type repack_4(TInput in, size_t result_size) {
typename std::enable_if<!detail::has_begin<TInput>::value, void>::type repack_4(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<T>::value, void>::type repack_5(TInput in, size_t result_size) {
typename std::enable_if<!detail::has_begin<T>::value, void>::type repack_5(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<T>::value || !nil::crypto3::detail::has_begin<TInput>::value, void>::type
typename std::enable_if<!detail::has_begin<T>::value || !detail::has_begin<TInput>::value, void>::type
repack_6(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<T>::value, void>::type repack_7(TInput in, size_t result_size) {
typename std::enable_if<!detail::has_begin<T>::value, void>::type repack_7(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<!nil::crypto3::detail::has_begin<T>::value || !nil::crypto3::detail::has_begin<TInput>::value, void>::type
typename std::enable_if<!detail::has_begin<T>::value || !detail::has_begin<TInput>::value, void>::type
repack_8(TInput in, size_t result_size) {
}

Expand All @@ -112,7 +112,7 @@ void repack_1(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<TInput>::value, void>::type repack_2(TInput in, size_t result_size) {
typename std::enable_if<detail::has_begin<TInput>::value, void>::type repack_2(TInput in, size_t result_size) {
status_type status;
T result = pack(in.begin(), in.end(), status);
BOOST_CHECK(status == status_type::success);
Expand All @@ -127,15 +127,15 @@ void repack_3(TInput in, size_t result_size) {
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<TInput>::value, void>::type repack_4(TInput in, size_t result_size) {
typename std::enable_if<detail::has_begin<TInput>::value, void>::type repack_4(TInput in, size_t result_size) {
status_type status;
T result;
status = pack(in.begin(), in.end(), result);
BOOST_CHECK(status == status_type::success);
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<T>::value, void>::type repack_5(TInput in, size_t result_size) {
typename std::enable_if<detail::has_begin<T>::value, void>::type repack_5(TInput in, size_t result_size) {
status_type status;
T result;
resize(result, result_size);
Expand All @@ -145,7 +145,7 @@ typename std::enable_if<nil::crypto3::detail::has_begin<T>::value, void>::type r
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<T>::value && nil::crypto3::detail::has_begin<TInput>::value, void>::type
typename std::enable_if<detail::has_begin<T>::value && detail::has_begin<TInput>::value, void>::type
repack_6(TInput in, size_t result_size) {
status_type status;
T result;
Expand All @@ -156,7 +156,7 @@ typename std::enable_if<nil::crypto3::detail::has_begin<T>::value && nil::crypto
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<T>::value, void>::type repack_7(TInput in, size_t result_size) {
typename std::enable_if<detail::has_begin<T>::value, void>::type repack_7(TInput in, size_t result_size) {
status_type status;
T result;
resize(result, result_size);
Expand All @@ -165,7 +165,7 @@ typename std::enable_if<nil::crypto3::detail::has_begin<T>::value, void>::type r
}

template<typename T, typename TInput>
typename std::enable_if<nil::crypto3::detail::has_begin<T>::value && nil::crypto3::detail::has_begin<TInput>::value, void>::type
typename std::enable_if<detail::has_begin<T>::value && detail::has_begin<TInput>::value, void>::type
repack_8(TInput in, size_t result_size) {
status_type status;
T result;
Expand Down

0 comments on commit f371ede

Please sign in to comment.