Skip to content

Commit

Permalink
Added more tests and more includes
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Dec 28, 2023
1 parent c4f1228 commit 07942bb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
3 changes: 1 addition & 2 deletions include/rfl/internal/is_attribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
#include <type_traits>
#include <utility>

#include "../Attribute.hpp"
#include "../Field.hpp"

namespace rfl {

template <class T> struct Attribute;

namespace internal {

template <class T>
Expand Down
2 changes: 2 additions & 0 deletions include/rfl/parsing/NamedTupleParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "../internal/Memoization.hpp"
#include "../internal/is_basic_type.hpp"
#include "../internal/strings/replace_all.hpp"
#include "AreReaderAndWriter.hpp"
#include "Parser_base.hpp"
#include "is_required.hpp"

namespace rfl {
Expand Down
5 changes: 4 additions & 1 deletion tests/flexbuffers/test_all_of.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#include "test_all_of.hpp"

#include <iostream>
#include <rfl.hpp>
#include <rfl/flexbuf.hpp>
#include <source_location>
#include <string>
#include <vector>

// Make sure things still compile when
// rfl.hpp is included after rfl/flexbuf.hpp.
#include <rfl.hpp>

#include "write_and_read.hpp"

namespace test_all_of {
Expand Down
5 changes: 4 additions & 1 deletion tests/json/test_all_of.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#include "test_all_of.hpp"

#include <iostream>
#include <rfl.hpp>
#include <rfl/json.hpp>
#include <source_location>
#include <string>
#include <vector>

// Make sure things still compile when
// rfl.hpp is included after rfl/json.hpp.
#include <rfl.hpp>

#include "write_and_read.hpp"

namespace test_all_of {
Expand Down
7 changes: 5 additions & 2 deletions tests/xml/test_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
#include <array>
#include <iostream>
#include <memory>
#include <rfl.hpp>
#include <rfl/json.hpp>
#include <rfl/xml.hpp>
#include <source_location>
#include <string>

// Make sure things still compile when
// rfl.hpp is included after rfl/xml.hpp.
#include <rfl.hpp>

#include "write_and_read.hpp"

namespace test_array {
Expand Down

0 comments on commit 07942bb

Please sign in to comment.