summaryrefslogtreecommitdiff
path: root/tests/fgla_test_internals.h
blob: 6e019c70dbe2b72c5683407d98a1c3742a66267a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * fgla_test_internals.h - Internal function declarations for testing
 * 
 * This header exposes internal fgla functions for unit testing purposes.
 * These functions should not be used in production code.
 */

#ifndef FGLA_TEST_INTERNALS_H
#define FGLA_TEST_INTERNALS_H

#include "../include/glautils/fgla.h"

#ifdef TEST_BUILD

// Re-declare internal functions as extern for testing
// These functions are normally static in fgla.c

extern void to_lowercase_safe(char* str, size_t max_len);
extern int normalize_string_safe(const char* input, char* output, size_t output_size);
extern int contains_substring_safe(const char* haystack, const char* needle);
extern int matches_catalog(const char* manufacturer, const char* catalog_list[], int catalog_count);
extern int validate_search_term(const char* term);
extern int is_glass_code_pattern(const char* term);
extern int matches_glass_code_pattern_safe(const char* glass_code, const char* pattern);

#endif /* TEST_BUILD */

#endif /* FGLA_TEST_INTERNALS_H */
Back to https://optics-design.com