Crinit -- Configurable Rootfs Init
case-success.c File Reference

(2023-10-16, commit: 49337e0)

Unit test for crinitEnvVarInnerLex(), successful execution. More...

#include "common.h"
#include "lexers.h"
#include "string.h"
#include "unit_test.h"
#include "utest-lexers-envset-inner.h"
Include dependency graph for case-success.c:

Macros

#define CRINIT_UTEST_DUMMY_ENVVAR_NAME   "SOME_VAR"
 

Functions

void crinitEnvVarInnerLexTestSuccess (void **state)
 

Detailed Description

Unit test for crinitEnvVarInnerLex(), successful execution.

Macro Definition Documentation

◆ CRINIT_UTEST_DUMMY_ENVVAR_NAME

#define CRINIT_UTEST_DUMMY_ENVVAR_NAME   "SOME_VAR"

Function Documentation

◆ crinitEnvVarInnerLexTestSuccess()

void crinitEnvVarInnerLexTestSuccess ( void **  state)

Tests successful lex-ing of valid inputs.

All possible return values of crinitEnvVarInnerLex() save for CRINIT_TK_ERR are triggered using accordingly built input strings.