DAQ  1.0.0
Data Acquisition System (basic demo)
Classes | Functions
sqlitedatasource_integration_test.cc File Reference

This file have the implementation for sqlitedatamodel integration tests. More...

#include <chrono>
#include <ctime>
#include <iostream>
#include <string>
#include <thread>
#include <gtest/gtest.h>
#include "src/database-server/data-source/sqlitewrapper.h"
#include "src/database-server/data-source/test/testutil.h"
Include dependency graph for sqlitedatasource_integration_test.cc:

Classes

class  SQLiteWrapperTest
 

Functions

 TEST (NotInitializedSchema, CanNotAddVariable)
 
 TEST (OpenDb, CanOpenDb)
 
 TEST (OpenDb, CanNotOpenDb)
 
 TEST_F (SQLiteWrapperTest, AddVariable)
 
 TEST_F (SQLiteWrapperTest, FetchVariable)
 
 TEST_F (SQLiteWrapperTest, AddVariableValue)
 
 TEST_F (SQLiteWrapperTest, RetrieveVariableValue)
 
 TEST_F (SQLiteWrapperTest, RetrieveVariableValueInDateRanges)
 
 TEST_F (SQLiteWrapperTest, CountVariableValues)
 
 TEST_F (SQLiteWrapperTest, CountVariableValuesInRange)
 

Detailed Description

This file have the implementation for sqlitedatamodel integration tests.

Author
Alvaro Denis denis.nosp@m.acos.nosp@m.taq@g.nosp@m.mail.nosp@m..com
Date
6/22/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

TEST ( NotInitializedSchema  ,
CanNotAddVariable   
)

Here is the call graph for this function:

TEST ( OpenDb  ,
CanOpenDb   
)
TEST ( OpenDb  ,
CanNotOpenDb   
)
TEST_F ( SQLiteWrapperTest  ,
AddVariable   
)
TEST_F ( SQLiteWrapperTest  ,
FetchVariable   
)
TEST_F ( SQLiteWrapperTest  ,
AddVariableValue   
)

Here is the call graph for this function:

TEST_F ( SQLiteWrapperTest  ,
RetrieveVariableValue   
)

Here is the call graph for this function:

TEST_F ( SQLiteWrapperTest  ,
RetrieveVariableValueInDateRanges   
)

Here is the call graph for this function:

TEST_F ( SQLiteWrapperTest  ,
CountVariableValues   
)

Here is the call graph for this function:

TEST_F ( SQLiteWrapperTest  ,
CountVariableValuesInRange   
)

Here is the call graph for this function: