turtle/1.3.2

Turtle is a C++ mock object library based on Boost with a focus on usability, simplicity and flexibility.
Recipe info
2023-07-14

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
turtle/1.3.2

Using turtle

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
turtle/1.3.2
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("turtle/1.3.2")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): turtle
  • CMake target name(s): turtle::turtle
  • pkg-config file name(s): turtle.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(turtle REQUIRED)
# ...
target_link_libraries(YOUR_TARGET turtle::turtle)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the turtle homepage listed above:

#include "turtle/catch.hpp"
#include "turtle/cleanup.hpp"
#include "turtle/config.hpp"
#include "turtle/constraint.hpp"
#include "turtle/constraints.hpp"
#include "turtle/detail/action.hpp"
#include "turtle/detail/addressof.hpp"
#include "turtle/detail/child.hpp"
#include "turtle/detail/context.hpp"
#include "turtle/detail/expectation_template.hpp"
#include "turtle/detail/formatter.hpp"
#include "turtle/detail/function.hpp"
#include "turtle/detail/function_impl_template.hpp"
#include "turtle/detail/function_iterate.hpp"
#include "turtle/detail/function_template.hpp"
#include "turtle/detail/functor.hpp"
#include "turtle/detail/group.hpp"
#include "turtle/detail/invocation.hpp"
#include "turtle/detail/is_functor.hpp"
#include "turtle/detail/matcher_base_template.hpp"
#include "turtle/detail/move_helper.hpp"
#include "turtle/detail/mutex.hpp"
#include "turtle/detail/object_impl.hpp"
#include "turtle/detail/parameter.hpp"
#include "turtle/detail/parent.hpp"
#include "turtle/detail/root.hpp"
#include "turtle/detail/sequence_impl.hpp"
#include "turtle/detail/signature.hpp"
#include "turtle/detail/singleton.hpp"
#include "turtle/detail/type_name.hpp"
#include "turtle/detail/verifiable.hpp"
#include "turtle/error.hpp"
#include "turtle/exception.hpp"
#include "turtle/format.hpp"
#include "turtle/log.hpp"
#include "turtle/matcher.hpp"
#include "turtle/mock.hpp"
#include "turtle/object.hpp"
#include "turtle/reset.hpp"
#include "turtle/sequence.hpp"
#include "turtle/stream.hpp"
#include "turtle/verify.hpp"