Class FZagalaSpecImportFormatHelper#
Defined in File ZagalaSpecImportFormatHelper.h
Class Documentation#
-
class FZagalaSpecImportFormatHelper#
Stateless helper that centralises BDD format detection and parser dispatch.
Used by:
UZagalaSpecFeatureImportFactory::FactoryCreateFile
FZagalaSpecImportExportModule::OnImportFeatureFile (Content Browser menu)
Public Static Functions
-
static FString DetectFormatFromExtension(const FString &Extension)#
Map a lowercase file extension to a canonical format name.
- Parameters:
Extension – Lowercase extension without dot (e.g. “feature”, “robot”).
- Returns:
One of: “gherkin”, “robot”, “fitnesse”, “gauge”, or “” for unsupported.
-
static bool TryParse(const FString &AbsoluteFilePath, const FString &FormatHint, FZagalaSpecParseResult &OutResult)#
Parse a BDD file using the parser matched by extension or FormatHint.
- Parameters:
AbsoluteFilePath – Full path to the file on disk.
FormatHint – One of: gherkin, robot, fitnesse, gauge, all, or “”. “all” and “” both use extension-based detection.
OutResult – Populated with parsed features, errors, and warnings.
- Returns:
true if at least one feature was parsed without fatal errors.