FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testUtils.hpp File Reference

Utility functions for test. More...

#include <iostream>
#include <vector>
Include dependency graph for testUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const std::vector< int > &x)
 << operator overload to appends a vector to an ostream object More...
 

Detailed Description

Utility functions for test.

Definition in file testUtils.hpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const std::vector< int > &  x 
)

<< operator overload to appends a vector to an ostream object

Operator appends the integers in a vector x to the ostream object in a JSON style format.

Parameters
osStream object to be appended with vector
xThe vector to be appended
Returns
ostream with vector appended

Definition at line 27 of file testUtils.hpp.