File: testfixture.cpp

package info (click to toggle)
keyman 18.0.246-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,316 kB
  • sloc: python: 52,784; cpp: 21,289; sh: 7,633; ansic: 4,823; xml: 3,617; perl: 959; makefile: 139; javascript: 138
file content (18 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <glib.h>

typedef struct {
} TestObjectFixture;

// The purpose of this unit "test" is to have a test so that generating code
// coverage report works with Ubuntu 24.04+.
static void test_stub(TestObjectFixture* fixture, gconstpointer user_data) {
  g_assert_true(TRUE);
}

int main(int argc, char* argv[]) {
  g_test_init(&argc, &argv, NULL);

  g_test_add("/test/test_stub", TestObjectFixture, NULL, NULL, test_stub, NULL);

  return g_test_run();
}