set01.c
来自「db.* (pronounced dee-be star) is an adva」· C语言 代码 · 共 49 行
C
49 行
/****************************************************************************** * * db.* * Test Suite * * Database Modification Tests * *****************************************************************************/#include "test.h"#include "set01.h"#include "utility.h"#include "db.star.h"#include "testdb.h"#include "data.h"struct rec1 trec1;/* Function to run all tests in this subset. */void set01_tests(){ /* Array of tests to be performed */ /* Each test function defined below must be contained within this array */ #define set01_length 1 struct unit_test set01[set01_length] = {{"test_open_db", &test_open_db}}; perform_tests(set01, set01_length);}/* Test d_functions to open/close a task pointer and database *//* ========================================================================= *//* Test opening a new task, opening a database, initializing the db, * closing it, then closing the task. */bool test_open_db(DB_TASK *Currtask){ bool passtest = TRUE; /* Nothing in here. Meant to be the first run of perform_tests() */ return passtest;}/* TODO: add more indepth tests of these initial functions: d_opentask, * d_open, * d_initialize, d_close, d_closetask */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?