Crinit -- Configurable Rootfs Init
case-lexer-error.c File Reference

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

Unit test for crinitEnvVarInnerLex() testing error handling of the lexer. More...

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

Functions

void crinitEnvVarInnerLexTestLexerError (void **state)
 

Detailed Description

Unit test for crinitEnvVarInnerLex() testing error handling of the lexer.

Function Documentation

◆ crinitEnvVarInnerLexTestLexerError()

void crinitEnvVarInnerLexTestLexerError ( void **  state)

Tests cases leading to a lexer error (CRINIT_TK_ERR).

For crinitEnvVarInnerLex() that can only happen if the input string starts with a character not allowed in an environment key AND is not an opening double quote.