Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Unit Tests

This directory contains the unit tests for dd-trace-cpp.

The testing library used is Catch2, vendored here as a single header, catch.hpp (see the Makefile).

../bin/test builds and runs the unit tests.

Code Layout

Test-specific implementations of interfaces are defined in mocks/.

test.h is a wrapper around catch.hpp.

matchers.h defines extensions to Catch2 that are convenient in test assertions.

main.cpp is the test driver (executable).

All other translation units in this directory are the tests themselves. For example, test_span.cpp contains the tests for the Span class and associated behavior.