From d3976815ea931037f92bd361e4a9f7764aac89c5 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek
Date: Fri, 1 Feb 2013 14:18:27 +0100
Subject: [PATCH] doc: Fix links in index.html
The links were pointing to ../src/example should have been ../example
Reviwed-by: Andreas Schneider
---
doc/index.html | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/doc/index.html b/doc/index.html
index d98f905..8db0247 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -74,7 +74,7 @@ is complete run_tests() performs various checks to determine whether
the test succeeded.
Using run_tests()
-run_tests.c
+run_tests.c
#include <stdarg.h>
#include <stddef.h>
@@ -132,7 +132,7 @@ calls to mock_assert() occur during the function called via
expect_assert_failure() a test failure is signalled.
Using mock_assert()
-assert_module.c
+assert_module.c
#include <assert.h>
@@ -156,7 +156,7 @@ void decrement_value(int * const value) {
}
}
-assert_module_test.c
+assert_module_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -206,7 +206,7 @@ caused the assertion failure which increases data visibility aiding
debugging of failing test cases.
Using assert_{type}_equal() macros
-assert_macro.c
+assert_macro.c
#include <string.h>
@@ -231,7 +231,7 @@ unsigned int string_to_status_code(const char* const status_code_string) {
return ~0U;
}
-assert_macro_test.c
+assert_macro_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -281,7 +281,7 @@ which means memory corruption from a single test case could potentially cause
the test application to exit prematurely.
Using cmocka's Allocators
-allocate_module.c
+allocate_module.c
#include <malloc.h>
@@ -313,7 +313,7 @@ void buffer_underflow() {
free(memory);
}
-allocate_module_test.c
+allocate_module_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -374,7 +374,7 @@ return value. In addition this allows the specification of return values for
multiple calls to a mock function.
Using will_return()
-database.h
+database.h
typedef struct DatabaseConnection DatabaseConnection;
@@ -398,7 +398,7 @@ struct DatabaseConnection {
DatabaseConnection* connect_to_database(const char * const url,
const unsigned int port);
-customer_database.c
+customer_database.c
#include <stddef.h>
#include <stdio.h>
@@ -430,7 +430,7 @@ unsigned int get_customer_id_by_name(
return (unsigned int)results[0];
}
-customer_database_test.c
+customer_database_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -505,7 +505,7 @@ test failure is signalled. In addition if check_expected() is called and
no more parameter values are queued a test failure occurs.
Using expect_*()
-product_database.c
+product_database.c
#include <database.h>
@@ -514,7 +514,7 @@ DatabaseConnection* connect_to_product_database() {
return connect_to_database("products.abcd.org", 322);
}
-product_database_test.c
+product_database_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -580,7 +580,7 @@ specified by the unit_test_teardown() or
executed for a test case even when it fails.
Using unit_test_setup_teardown()
-key_value.c
+key_value.c
#include <stddef.h>
#include <stdlib.h>
@@ -622,7 +622,7 @@ void sort_items_by_key() {
key_value_compare_keys);
}
-key_value_test.c
+key_value_test.c
#include <stdarg.h>
#include <stddef.h>
@@ -694,9 +694,9 @@ int main(int argc, char* argv[]) {
Example
A small command line calculator
-calculator.c application
+calculator.c application
and test application that full exercises the calculator application
-calculator_test.c
+calculator_test.c
are provided as an example of cmocka's features discussed in this document.
--
2.7.4