# Seed-Data Stub Examples Input/output examples showing gold file analysis and the resulting seed-data stubs. --- ## Example 1: Formula Field with Date and Picklist Dependencies **Gold file**: `gold/objects/Contract/fields/Payment_Overdue__c.field-meta.xml` ```xml Payment_Overdue__c Text IF(AND(Payment_Due_Date__c < TODAY(), ISPICKVAL(Payment_Status__c, "UNPAID")), "PAYMENT OVERDUE", null) BlankAsZero 20 ``` **Analysis**: Formula references `Payment_Due_Date__c` (Date) and `Payment_Status__c` (Picklist with value `UNPAID`). **Generated stubs**: `seed-data/objects/Contract/fields/Payment_Due_Date__c.field-meta.xml`: ```xml Payment_Due_Date__c Date ``` `seed-data/objects/Contract/fields/Payment_Status__c.field-meta.xml`: ```xml Payment_Status__c Picklist UNPAID ``` Only `UNPAID` is included — no other values. --- ## Example 2: Flow Referencing Custom Objects **Gold file**: A Flow XML that triggers on `Adoption__c` record creation and references a Lookup to `Animal__c`. **Generated stubs**: `seed-data/objects/Adoption__c/Adoption__c.object-meta.xml`: ```xml Deployed Text Adoptions ReadWrite ``` `seed-data/objects/Animal__c/Animal__c.object-meta.xml`: ```xml Deployed Text Animals ReadWrite ``` `seed-data/objects/Adoption__c/fields/Animal__c.field-meta.xml`: ```xml Animal__c Lookup Animal__c Adoptions ``` --- ## Example 3: Apex Class with Parent Class Dependency **Gold file**: `gold/classes/OrderProcessor.cls` extends `BaseProcessor`. **Generated stubs**: `seed-data/classes/BaseProcessor.cls`: ```java public abstract class BaseProcessor { } ``` `seed-data/classes/BaseProcessor.cls-meta.xml`: ```xml 62.0 Active ``` Empty stub — no method bodies or implementations.