aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/sqlitewritestatementmock.cpp
blob: 1ed1abbe8d42ae549e1e1d5bcee7736d32a8939c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#include "sqlitewritestatementmock.h"

#include "sqlitedatabasemock.h"

SqliteWriteStatementMockBase::SqliteWriteStatementMockBase(Utils::SmallStringView sqlStatement,
                                                           SqliteDatabaseMock &database)
    : sqlStatement(sqlStatement)
{
    database.prepare(sqlStatement);
}