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

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

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

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

Functions

void crinitEnvVarOuterLexTestLexerError (void **state)
 

Detailed Description

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

Function Documentation

◆ crinitEnvVarOuterLexTestLexerError()

void crinitEnvVarOuterLexTestLexerError ( void **  state)

Tests cases leading to a lexer error (CRINIT_TK_ERR).

For crinitEnvVarOuterLex() 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.