UNPKG

il2cpp-dump-analyzer-mcp

Version:

Agentic RAG system for analyzing IL2CPP dump.cs files from Unity games

92 lines (91 loc) 2.92 kB
/** * Real Data Test Helpers * Utility functions for working with real dump.cs data in tests */ import { Document } from '@langchain/core/documents'; import { RealDataTestContext } from './dump-cs-test-setup'; import { IL2CPPClass, IL2CPPEnum } from '../../parser/enhanced-types'; /** * Test assertion helpers for real data validation */ export declare class RealDataAssertions { /** * Assert that a class exists in the real data */ static assertClassExists(context: RealDataTestContext, className: string): IL2CPPClass; /** * Assert that an enum exists in the real data */ static assertEnumExists(context: RealDataTestContext, enumName: string): IL2CPPEnum; /** * Assert that MonoBehaviours exist in the real data */ static assertMonoBehavioursExist(context: RealDataTestContext): IL2CPPClass[]; /** * Assert that search results contain expected metadata */ static assertSearchResultsValid(results: Document[], expectedType?: string): void; } /** * Real data query helpers for common test scenarios */ export declare class RealDataQueries { /** * Get a known MonoBehaviour class name from real data */ static getKnownMonoBehaviourName(context: RealDataTestContext): string; /** * Get a known enum name from real data */ static getKnownEnumName(context: RealDataTestContext): string; /** * Get a known class name from real data */ static getKnownClassName(context: RealDataTestContext): string; /** * Get a known namespace from real data */ static getKnownNamespace(context: RealDataTestContext): string; /** * Get search queries that should return results based on real data */ static getValidSearchQueries(context: RealDataTestContext): string[]; /** * Get search queries that should return no results */ static getInvalidSearchQueries(): string[]; } /** * Performance test helpers for real data */ export declare class RealDataPerformance { /** * Measure search performance with real data */ static measureSearchPerformance(vectorStore: any, query: string, iterations?: number): Promise<{ averageTime: number; minTime: number; maxTime: number; }>; /** * Validate that search performance meets expectations */ static assertSearchPerformance(performanceResult: { averageTime: number; minTime: number; maxTime: number; }, maxAverageTime?: number): void; } /** * Real data validation helpers */ export declare class RealDataValidation { /** * Validate that the real data context is properly set up */ static validateTestContext(context: RealDataTestContext): void; /** * Validate that real data contains expected Unity patterns */ static validateUnityPatterns(context: RealDataTestContext): void; }