Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTiago <tiagomacarios@users.noreply.github.com>2017-11-28 18:13:49 +0300
committerNeil MacIntosh <neilmac@microsoft.com>2017-11-28 18:13:49 +0300
commit0d33bf6794765311d4bdac68e1f6584108f011bf (patch)
tree21aea93c3fe54937cac6beac8c8f6a84331690cb /tests
parent1c95f9436eae69c9b9315911ef6aa210df7d1e31 (diff)
Applied iwyu --comment to the code base (#588)
Diffstat (limited to 'tests')
-rw-r--r--tests/algorithm_tests.cpp12
-rw-r--r--tests/assertion_tests.cpp4
-rw-r--r--tests/at_tests.cpp14
-rw-r--r--tests/bounds_tests.cpp10
-rw-r--r--tests/byte_tests.cpp11
-rw-r--r--tests/multi_span_tests.cpp28
-rw-r--r--tests/notnull_tests.cpp17
-rw-r--r--tests/owner_tests.cpp7
-rw-r--r--tests/span_tests.cpp30
-rw-r--r--tests/strided_span_tests.cpp21
-rw-r--r--tests/string_span_tests.cpp22
-rw-r--r--tests/utils_tests.cpp9
12 files changed, 113 insertions, 72 deletions
diff --git a/tests/algorithm_tests.cpp b/tests/algorithm_tests.cpp
index 045fd3e..388d17d 100644
--- a/tests/algorithm_tests.cpp
+++ b/tests/algorithm_tests.cpp
@@ -14,11 +14,17 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHE...
-#include <gsl/gsl_algorithm>
+#include <gsl/gsl_algorithm> // for copy
+#include <gsl/span> // for span
-#include <array>
+#include <array> // for array
+#include <cstddef> // for size_t
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace std;
using namespace gsl;
diff --git a/tests/assertion_tests.cpp b/tests/assertion_tests.cpp
index 42966d1..25c0089 100644
--- a/tests/assertion_tests.cpp
+++ b/tests/assertion_tests.cpp
@@ -14,9 +14,9 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHECK...
-#include <gsl/gsl>
+#include <gsl/gsl_assert> // for fail_fast (ptr only), Ensures, Expects
using namespace gsl;
diff --git a/tests/at_tests.cpp b/tests/at_tests.cpp
index 78e8e3d..2f9e999 100644
--- a/tests/at_tests.cpp
+++ b/tests/at_tests.cpp
@@ -14,12 +14,18 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK_THROW...
-#include <gsl/gsl>
+#include <gsl/gsl_util> // for at
-#include <initializer_list>
-#include <vector>
+#include <array> // for array
+#include <cstddef> // for size_t
+#include <initializer_list> // for initializer_list
+#include <vector> // for vector
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using gsl::fail_fast;
diff --git a/tests/bounds_tests.cpp b/tests/bounds_tests.cpp
index 51b5393..1f4b1e2 100644
--- a/tests/bounds_tests.cpp
+++ b/tests/bounds_tests.cpp
@@ -14,11 +14,15 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, TEST_CASE
-#include <gsl/multi_span>
+#include <gsl/multi_span> // for static_bounds, static_bounds_dynamic_range_t
-#include <vector>
+#include <cstddef> // for ptrdiff_t, size_t
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace std;
using namespace gsl;
diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp
index 2c6259d..41501ce 100644
--- a/tests/byte_tests.cpp
+++ b/tests/byte_tests.cpp
@@ -14,16 +14,9 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
-#include <gsl/gsl_byte>
-
-#include <iostream>
-#include <list>
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
+#include <gsl/gsl_byte> // for to_byte, to_integer, byte, operator&, ope...
using namespace std;
using namespace gsl;
diff --git a/tests/multi_span_tests.cpp b/tests/multi_span_tests.cpp
index af58d76..52df759 100644
--- a/tests/multi_span_tests.cpp
+++ b/tests/multi_span_tests.cpp
@@ -14,16 +14,24 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
-
-#include <gsl/multi_span>
-
-#include <iostream>
-#include <list>
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHECK...
+
+#include <gsl/gsl_byte> // for byte
+#include <gsl/gsl_util> // for narrow_cast
+#include <gsl/multi_span> // for multi_span, contiguous_span_iterator, dim
+
+#include <algorithm> // for fill, for_each
+#include <array> // for array
+#include <iostream> // for ptrdiff_t, size_t
+#include <iterator> // for reverse_iterator, begin, end, operator!=
+#include <numeric> // for iota
+#include <stddef.h> // for ptrdiff_t
+#include <string> // for string
+#include <vector> // for vector
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace std;
using namespace gsl;
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp
index 6c841f0..50b15f6 100644
--- a/tests/notnull_tests.cpp
+++ b/tests/notnull_tests.cpp
@@ -14,13 +14,20 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
-#include <gsl/pointers>
+#include <gsl/pointers> // for not_null, operator<, operator<=, operator>
-#include <memory>
-#include <string>
-#include <vector>
+#include <algorithm> // for addressof
+#include <memory> // for shared_ptr, make_shared, operator<, opera...
+#include <sstream> // for operator<<, ostringstream, basic_ostream:...
+#include <stdint.h> // for uint16_t
+#include <string> // for basic_string, operator==, string, operator<<
+#include <typeinfo> // for type_info
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace gsl;
diff --git a/tests/owner_tests.cpp b/tests/owner_tests.cpp
index dbc8d16..94822f5 100644
--- a/tests/owner_tests.cpp
+++ b/tests/owner_tests.cpp
@@ -14,12 +14,9 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
-#include <gsl/pointers>
-
-#include <functional>
-#include <memory>
+#include <gsl/pointers> // for owner
using namespace gsl;
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
index bc4666b..b14ddf0 100644
--- a/tests/span_tests.cpp
+++ b/tests/span_tests.cpp
@@ -14,17 +14,25 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
-
-#include <gsl/span>
-
-#include <iostream>
-#include <list>
-#include <map>
-#include <memory>
-#include <regex>
-#include <string>
-#include <vector>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
+
+#include <gsl/gsl_byte> // for byte
+#include <gsl/gsl_util> // for narrow_cast, at
+#include <gsl/span> // for span, span_iterator, operator==, operator!=
+
+#include <array> // for array
+#include <iostream> // for ptrdiff_t
+#include <iterator> // for reverse_iterator, operator-, operator==
+#include <memory> // for unique_ptr, shared_ptr, make_unique, allo...
+#include <regex> // for match_results, sub_match, match_results<>...
+#include <stddef.h> // for ptrdiff_t
+#include <string> // for string
+#include <type_traits> // for integral_constant<>::value, is_default_co...
+#include <vector> // for vector
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace std;
using namespace gsl;
diff --git a/tests/strided_span_tests.cpp b/tests/strided_span_tests.cpp
index 14400d4..2c1c047 100644
--- a/tests/strided_span_tests.cpp
+++ b/tests/strided_span_tests.cpp
@@ -14,16 +14,21 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHECK...
-#include <gsl/multi_span>
+#include <gsl/gsl_byte> // for byte
+#include <gsl/gsl_util> // for narrow_cast
+#include <gsl/multi_span> // for strided_span, index, multi_span, strided_...
-#include <iostream>
-#include <list>
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
+#include <iostream> // for size_t
+#include <iterator> // for begin, end
+#include <numeric> // for iota
+#include <type_traits> // for integral_constant<>::value, is_convertible
+#include <vector> // for vector
+
+namespace gsl {
+struct fail_fast;
+} // namespace gsl
using namespace std;
using namespace gsl;
diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp
index 823b19d..83171ac 100644
--- a/tests/string_span_tests.cpp
+++ b/tests/string_span_tests.cpp
@@ -14,15 +14,19 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
-
-#include <gsl/gsl> //owner
-#include <gsl/string_span>
-
-#include <algorithm>
-#include <cstdlib>
-#include <map>
-#include <vector>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
+
+#include <gsl/gsl_assert> // for Expects, fail_fast (ptr only)
+#include <gsl/pointers> // for owner
+#include <gsl/span> // for span, dynamic_extent
+#include <gsl/string_span> // for basic_string_span, operator==, ensure_z
+
+#include <algorithm> // for move, find
+#include <cstddef> // for size_t
+#include <map> // for map
+#include <string> // for basic_string, string, char_traits, operat...
+#include <type_traits> // for remove_reference<>::type
+#include <vector> // for vector, allocator
using namespace std;
using namespace gsl;
diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp
index 67cceb5..610efbf 100644
--- a/tests/utils_tests.cpp
+++ b/tests/utils_tests.cpp
@@ -14,11 +14,14 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include <catch/catch.hpp>
+#include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, TEST_...
-#include <gsl/gsl>
+#include <gsl/gsl_util> // for narrow, finally, narrow_cast, narrowing_e...
-#include <functional>
+#include <algorithm> // for move
+#include <functional> // for reference_wrapper, _Bind_helper<>::type
+#include <limits> // for numeric_limits
+#include <stdint.h> // for uint32_t, int32_t
using namespace gsl;