DAQ  1.0.0
Data Acquisition System (basic demo)
Functions
dataaccess_unit_test.cc File Reference

This file have the data access unit test. More...

#include <chrono>
#include <cmath>
#include <ctime>
#include <iostream>
#include <string>
#include <thread>
#include <gtest/gtest.h>
#include "src/database-server/data-access/dataaccess.h"
#include "src/database-server/data-access/test/mocksqlitewrapper.h"
Include dependency graph for dataaccess_unit_test.cc:

Functions

bool operator== (const Variable &v1, const Variable &v2)
 
bool operator== (const VarValue &v1, const VarValue &v2)
 
std::ostream & operator<< (std::ostream &stream, const Variable &var)
 
std::ostream & operator<< (std::ostream &stream, const VarValue &var)
 
 TEST (DataAccessHandleDataSourceResponses, add_variable)
 
 TEST (DataAccessHandleDataSourceResponses, add_variable_value)
 
 TEST (DataAccessHandleDataSourceResponses, fetch_variables)
 
 TEST (DataAccessHandleDataSourceResponses, fetch_variable_values)
 
 TEST (DataAccessHandleDataSourceResponses, fetch_variable_values_in_range)
 

Detailed Description

This file have the data access unit test.

Author
Alvaro Denis denis.nosp@m.acos.nosp@m.taq@g.nosp@m.mail.nosp@m..com
Date
8/5/2019
Attention

COPYRIGHT © 2019 denisacostaq. All rights reserved.

This file is part of DAQs.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS PRODUCT IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS PRODUCT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Variable var 
)
std::ostream& operator<< ( std::ostream &  stream,
const VarValue var 
)
bool operator== ( const Variable v1,
const Variable v2 
)

Here is the call graph for this function:

bool operator== ( const VarValue v1,
const VarValue v2 
)
TEST ( DataAccessHandleDataSourceResponses  ,
add_variable   
)

Here is the call graph for this function:

TEST ( DataAccessHandleDataSourceResponses  ,
add_variable_value   
)

Here is the call graph for this function:

TEST ( DataAccessHandleDataSourceResponses  ,
fetch_variables   
)

Here is the call graph for this function:

TEST ( DataAccessHandleDataSourceResponses  ,
fetch_variable_values   
)

Here is the call graph for this function:

TEST ( DataAccessHandleDataSourceResponses  ,
fetch_variable_values_in_range   
)

Here is the call graph for this function: