# `Fun_GetcolorcountTest` (function)

> 根据 + 分隔符，确定颜色数


- **Type:** FUNCTION
- **Returns:** `int`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `iFace` | `int` |
| 2 | IN | `iColorOrder` | `int` |
| 3 | IN | `splitstr` | `varchar(1000)` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTION `Fun_GetcolorcountTest`'`._

## Narrative

**Business context:** Body is byte-identical to `Fun_Getcolorcount`. `Test` suffix per wiki convention marks a staging copy retained for development comparison.

**What it does:** same as `Fun_Getcolorcount` — counts CMYK process colors vs. spot colors in a JSON color list with face-doubling, branching on `iColorOrder` (1 = CMYK count, 2 = spot count) and `iFace` (2 = double for two-sided printing).

**Invocation:** Status: appears orphaned. No caller found in any channel (form-master sSqlStr, gdsmodule hooks, other routines, exhaustive xly-src grep, dynamic-dispatch search) — candidate for maintainer audit. Test-only artifact; safe to drop after confirming with `Fun_Getcolorcount`.
