3-phase PV router
Loading...
Searching...
No Matches
test_main.cpp File Reference

Embedded unit tests for FastDivision. More...

#include <Arduino.h>
#include <unity.h>
#include "FastDivision.h"
#include "FastDivision.cpp"
Include dependency graph for test_main.cpp:

Go to the source code of this file.

Functions

void loop ()
 
void setUp (void)
 
void setup ()
 
void tearDown (void)
 
void test_divmod10_basic (void)
 
void test_divmod10_large_values (void)
 
void test_divmod10_with_remainder (void)
 
void test_divu1 (void)
 
void test_divu10_basic (void)
 
void test_divu10_edge_cases (void)
 
void test_divu10_large_values (void)
 
void test_divu10_random_values (void)
 
void test_divu2 (void)
 
void test_divu4 (void)
 
void test_divu8 (void)
 

Detailed Description

Embedded unit tests for FastDivision.

Tests the AVR assembly fast division functions. Must run on Arduino hardware (uses AVR-specific assembly).

Definition in file test_main.cpp.

Function Documentation

◆ loop()

void loop ( )

Definition at line 170 of file test_main.cpp.

Here is the call graph for this function:

◆ setUp()

void setUp ( void )

Definition at line 15 of file test_main.cpp.

◆ setup()

void setup ( )

Definition at line 164 of file test_main.cpp.

◆ tearDown()

void tearDown ( void )

Definition at line 19 of file test_main.cpp.

◆ test_divmod10_basic()

void test_divmod10_basic ( void )

Definition at line 62 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divmod10_large_values()

void test_divmod10_large_values ( void )

Definition at line 102 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divmod10_with_remainder()

void test_divmod10_with_remainder ( void )

Definition at line 80 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu1()

void test_divu1 ( void )

Definition at line 152 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu10_basic()

void test_divu10_basic ( void )

Definition at line 27 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu10_edge_cases()

void test_divu10_edge_cases ( void )

Definition at line 35 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu10_large_values()

void test_divu10_large_values ( void )

Definition at line 43 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu10_random_values()

void test_divu10_random_values ( void )

Definition at line 50 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu2()

void test_divu2 ( void )

Definition at line 142 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu4()

void test_divu4 ( void )

Definition at line 131 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_divu8()

void test_divu8 ( void )

Definition at line 120 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: