Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: LeftAt( "testModuleArgs", ), arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "hostPkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "nodes", default: None, }, FunctionHeadDestructuredArgument { identifier: "moduleType", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 12, }, end: Position { line: 3, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 3, column: 17, }, end: Position { line: 3, column: 25, }, }, }, ), Raw( PartRaw { content: "types", span: Span { start: Position { line: 3, column: 26, }, end: Position { line: 3, column: 31, }, }, }, ), Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 3, column: 32, }, end: Position { line: 3, column: 37, }, }, }, ), ], span: Span { start: Position { line: 2, column: 4, }, end: Position { line: 3, column: 38, }, }, }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "types", span: Span { start: Position { line: 4, column: 12, }, end: Position { line: 4, column: 17, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "either", span: Span { start: Position { line: 4, column: 19, }, end: Position { line: 4, column: 25, }, }, }, ), Raw( PartRaw { content: "str", span: Span { start: Position { line: 4, column: 26, }, end: Position { line: 4, column: 29, }, }, }, ), Raw( PartRaw { content: "functionTo", span: Span { start: Position { line: 4, column: 30, }, end: Position { line: 4, column: 40, }, }, }, ), ], span: Span { start: Position { line: 2, column: 4, }, end: Position { line: 4, column: 41, }, }, }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 8, column: 18, }, end: Position { line: 8, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 9, column: 7, }, end: Position { line: 9, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "either", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 9, column: 21, }, end: Position { line: 9, column: 24, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "functionTo", span: Span { start: Position { line: 9, column: 26, }, end: Position { line: 9, column: 36, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 9, column: 37, }, end: Position { line: 9, column: 40, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 18, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A series of python declarations and statements that you write to perform\nthe test.\n", span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 13, column: 7, }, }, }, ), ], span: Span { start: Position { line: 10, column: 21, }, end: Position { line: 13, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 27, }, end: Position { line: 14, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testScriptString", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 15, column: 24, }, end: Position { line: 15, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 11, }, }, }, ), ], to: Identifier( Identifier { id: "str", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "readOnly", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 17, column: 18, }, end: Position { line: 17, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 18, column: 18, }, end: Position { line: 18, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 33, }, end: Position { line: 19, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "includeTestScriptReferences", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 32, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 21, column: 35, }, end: Position { line: 21, column: 43, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 22, column: 14, }, end: Position { line: 22, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 23, column: 17, }, end: Position { line: 23, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 24, column: 18, }, end: Position { line: 24, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 44, }, end: Position { line: 25, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "withoutTestScriptReferences", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 32, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 26, column: 35, }, end: Position { line: 26, column: 43, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 11, }, }, }, ), ], to: Identifier( Identifier { id: "moduleType", span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 27, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A parallel universe where the testScript is invalid and has no references.\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 30, column: 7, }, }, }, ), ], span: Span { start: Position { line: 28, column: 27, }, end: Position { line: 30, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 31, column: 18, }, end: Position { line: 31, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "visible", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 26, column: 44, }, end: Position { line: 33, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 13, }, end: Position { line: 34, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "withoutTestScriptReferences", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 32, }, }, }, ), Raw( PartRaw { content: "includeTestScriptReferences", span: Span { start: Position { line: 36, column: 33, }, end: Position { line: 36, column: 60, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 36, column: 63, }, end: Position { line: 36, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "withoutTestScriptReferences", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 32, }, }, }, ), Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 37, column: 33, }, end: Position { line: 37, column: 43, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 46, }, end: Position { line: 37, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkForce", span: Span { start: Position { line: 37, column: 50, }, end: Position { line: 37, column: 57, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "testscript omitted", span: Span { start: Position { line: 37, column: 59, }, end: Position { line: 37, column: 77, }, }, }, ), ], span: Span { start: Position { line: 37, column: 58, }, end: Position { line: 37, column: 78, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testScriptString", span: Span { start: Position { line: 39, column: 5, }, end: Position { line: 39, column: 21, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 10, }, end: Position { line: 40, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isFunction", span: Span { start: Position { line: 40, column: 14, }, end: Position { line: 40, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 40, column: 25, }, end: Position { line: 40, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 42, }, }, }, ), ], default: None, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 42, column: 16, }, end: Position { line: 42, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nodes", span: Span { start: Position { line: 44, column: 13, }, end: Position { line: 44, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 45, column: 15, }, end: Position { line: 45, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "k", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 47, column: 22, }, end: Position { line: 47, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "virtualisation", span: Span { start: Position { line: 47, column: 24, }, end: Position { line: 47, column: 38, }, }, }, ), Raw( PartRaw { content: "useNixStoreImage", span: Span { start: Position { line: 47, column: 39, }, end: Position { line: 47, column: 55, }, }, }, ), ], default: None, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "withoutTestScriptReferences", span: Span { start: Position { line: 51, column: 28, }, end: Position { line: 51, column: 55, }, }, }, ), Raw( PartRaw { content: "nodesCompat", span: Span { start: Position { line: 51, column: 56, }, end: Position { line: 51, column: 67, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "k", span: Span { start: Position { line: 51, column: 70, }, end: Position { line: 51, column: 71, }, }, }, ), }, ), ], default: None, }, ), else_: Identifier( Identifier { id: "v", span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 22, }, }, }, ), span: Span { start: Position { line: 47, column: 19, }, end: Position { line: 54, column: 22, }, }, }, ), span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 54, column: 22, }, }, }, ), span: Span { start: Position { line: 46, column: 18, }, end: Position { line: 54, column: 22, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 56, column: 17, }, end: Position { line: 56, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nodesCompat", span: Span { start: Position { line: 56, column: 24, }, end: Position { line: 56, column: 35, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 43, column: 11, }, end: Position { line: 57, column: 12, }, }, }, ), ], }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 58, column: 12, }, end: Position { line: 58, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 58, column: 19, }, end: Position { line: 58, column: 29, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 58, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaults", span: Span { start: Position { line: 60, column: 5, }, end: Position { line: 60, column: 13, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "name", default: None, }, ], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "virtualisation", span: Span { start: Position { line: 68, column: 7, }, end: Position { line: 68, column: 21, }, }, }, ), Raw( PartRaw { content: "additionalPaths", span: Span { start: Position { line: 68, column: 22, }, end: Position { line: 68, column: 37, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 69, column: 9, }, end: Position { line: 69, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optional", span: Span { start: Position { line: 69, column: 13, }, end: Position { line: 69, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 80, column: 12, }, end: Position { line: 80, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "virtualisation", span: Span { start: Position { line: 80, column: 19, }, end: Position { line: 80, column: 33, }, }, }, ), Raw( PartRaw { content: "useNixStoreImage", span: Span { start: Position { line: 80, column: 34, }, end: Position { line: 80, column: 50, }, }, }, ), ], default: None, }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 80, column: 54, }, end: Position { line: 80, column: 62, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasContext", span: Span { start: Position { line: 80, column: 63, }, end: Position { line: 80, column: 73, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "testModuleArgs", span: Span { start: Position { line: 80, column: 74, }, end: Position { line: 80, column: 88, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 80, column: 89, }, end: Position { line: 80, column: 95, }, }, }, ), Raw( PartRaw { content: "testScriptString", span: Span { start: Position { line: 80, column: 96, }, end: Position { line: 80, column: 112, }, }, }, ), ], default: None, }, ), ], }, ), }, ), operator: LogicalAnd, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "testModuleArgs", span: Span { start: Position { line: 80, column: 116, }, end: Position { line: 80, column: 130, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 80, column: 131, }, end: Position { line: 80, column: 137, }, }, }, ), Raw( PartRaw { content: "includeTestScriptReferences", span: Span { start: Position { line: 80, column: 138, }, end: Position { line: 80, column: 165, }, }, }, ), ], default: None, }, ), }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "hostPkgs", span: Span { start: Position { line: 81, column: 12, }, end: Position { line: 81, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeStringReferencesToFile", span: Span { start: Position { line: 81, column: 21, }, end: Position { line: 81, column: 48, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "testModuleArgs", span: Span { start: Position { line: 81, column: 49, }, end: Position { line: 81, column: 63, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 81, column: 64, }, end: Position { line: 81, column: 70, }, }, }, ), Raw( PartRaw { content: "testScriptString", span: Span { start: Position { line: 81, column: 71, }, end: Position { line: 81, column: 87, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 60, column: 39, }, end: Position { line: 82, column: 6, }, }, }, ), span: Span { start: Position { line: 60, column: 16, }, end: Position { line: 82, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 35, column: 12, }, end: Position { line: 83, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 84, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 84, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 84, column: 2, }, }, }, )