|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for I/O helpers, parsers, and startup-banner output. More...
#include "test_support.h"#include "io.h"#include <fcntl.h>#include <stdio.h>#include <string.h>#include <unistd.h>Go to the source code of this file.
Functions | |
| static PetscErrorCode | TestShouldWriteDataOutput (void) |
| Tests cadence-based Eulerian output triggering. | |
| static PetscErrorCode | TestVerifyPathExistence (void) |
| Tests filesystem existence checks for files and directories. | |
| static PetscErrorCode | TestWriteAndReadSimulationFields (void) |
| Tests writing and reloading core Eulerian field vectors. | |
| static PetscErrorCode | TestParsePostProcessingSettings (void) |
| Tests parsing of post-processing control settings from a file. | |
| static PetscErrorCode | TestTrimWhitespace (void) |
| Tests trimming of leading and trailing whitespace. | |
| static PetscErrorCode | TestBoundaryConditionStringParsers (void) |
| Tests boundary-condition string parsers for face, type, and handler names. | |
| static PetscErrorCode | TestValidateBCHandlerForBCType (void) |
| Tests validation of boundary-type and handler compatibility. | |
| static PetscErrorCode | TestParseScalingInformation (void) |
| Tests scaling-reference parsing and derived pressure scaling. | |
| static PetscErrorCode | CaptureBannerOutput (SimCtx *simCtx, char *captured, size_t captured_len) |
| Captures the startup banner into a temporary file-backed buffer. | |
| static PetscErrorCode | AssertCapturedContains (const char *captured, const char *needle, const char *message) |
| Asserts that captured banner output contains one expected substring. | |
| static PetscErrorCode | AssertCapturedOmits (const char *captured, const char *needle, const char *message) |
| Asserts that captured banner output omits one forbidden substring. | |
| static PetscErrorCode | TestDisplayBannerTracksConditionalStartupFields (void) |
| Tests conditional startup-banner fields across particle and analytical cases. | |
| int | main (int argc, char **argv) |
| Runs the unit-io PETSc test binary. | |
C unit tests for I/O helpers, parsers, and startup-banner output.
Definition in file test_io.c.
|
static |
Tests cadence-based Eulerian output triggering.
Definition at line 18 of file test_io.c.
|
static |
Tests filesystem existence checks for files and directories.
Definition at line 35 of file test_io.c.
|
static |
Tests writing and reloading core Eulerian field vectors.
Definition at line 63 of file test_io.c.
|
static |
Tests parsing of post-processing control settings from a file.
Definition at line 102 of file test_io.c.
|
static |
Tests trimming of leading and trailing whitespace.
Definition at line 142 of file test_io.c.
|
static |
Tests boundary-condition string parsers for face, type, and handler names.
Definition at line 161 of file test_io.c.
|
static |
Tests validation of boundary-type and handler compatibility.
Definition at line 183 of file test_io.c.
|
static |
Tests scaling-reference parsing and derived pressure scaling.
Definition at line 198 of file test_io.c.
|
static |
Captures the startup banner into a temporary file-backed buffer.
Definition at line 233 of file test_io.c.
|
static |
Asserts that captured banner output contains one expected substring.
Definition at line 278 of file test_io.c.
|
static |
Asserts that captured banner output omits one forbidden substring.
Definition at line 287 of file test_io.c.
|
static |
Tests conditional startup-banner fields across particle and analytical cases.
Definition at line 297 of file test_io.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-io PETSc test binary.
Definition at line 378 of file test_io.c.