packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/test/utils.json

{
  "name": "hydra.core.dsl.test.utils",
  "metadata": {"description": "DSL functions for hydra.core.test.utils", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.test.utils"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.test.utils"},
    {"module": "hydra.core.decode.test.utils"},
    {"module": "hydra.core.inference"},
    {"module": "hydra.core.lexical"},
    {"module": "hydra.core.lib.eithers"},
    {"module": "hydra.core.print.errors"},
    {"module": "hydra.core.testing"},
    {"module": "hydra.core.typing"},
    {"module": "hydra.core.dsl.inference"},
    {"module": "hydra.core.dsl.lexical"},
    {"module": "hydra.core.dsl.lib.eithers"},
    {"module": "hydra.core.dsl.print.errors"},
    {"module": "hydra.core.dsl.testing"},
    {"module": "hydra.core.dsl.typing"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.test.utils.inferTerm",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"literal": "string"}, "right": {"variable": "hydra.core.model.Term"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Graph"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.test.utils.inferTerm"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.test.utils.inferTerm"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.test.utils.inferTestCase",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}, {"name": "t1", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"variable": "hydra.core.testing.TestCaseWithMetadata"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "t1"}, "right": {"variable": "hydra.core.testing.TestCaseWithMetadata"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {
                        "function": {"variable": "hydra.core.typed.TypedTerm"},
                        "argument": {"variable": "hydra.core.testing.TestCaseWithMetadata"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.test.utils.inferTestCase"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.test.utils.inferTestCase"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.test.utils.inferTestGroupTerms",
        "signature": {
          "typeParameters": [{"name": "t0", "constraints": []}, {"name": "t1", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
              "isLazy": false},
            {
              "name": "arg1",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.testing.TestGroup"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"either": {"left": {"variable": "t1"}, "right": {"variable": "hydra.core.testing.TestGroup"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "t0"}}},
                "body": {
                  "lambda": {
                    "parameter": "arg1",
                    "domain": {
                      "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.testing.TestGroup"}}},
                    "body": {
                      "wrap": {
                        "typeName": "hydra.core.typed.TypedTerm",
                        "body": {
                          "inject": {
                            "typeName": "hydra.core.model.Term",
                            "field": {
                              "name": "application",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Application",
                                  "fields": [
                                    {
                                      "name": "function",
                                      "term": {
                                        "inject": {
                                          "typeName": "hydra.core.model.Term",
                                          "field": {
                                            "name": "application",
                                            "term": {
                                              "record": {
                                                "typeName": "hydra.core.model.Application",
                                                "fields": [
                                                  {
                                                    "name": "function",
                                                    "term": {
                                                      "inject": {
                                                        "typeName": "hydra.core.model.Term",
                                                        "field": {
                                                          "name": "variable",
                                                          "term": {
                                                            "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.test.utils.inferTestGroupTerms"}}}}}}}},
                                                  {
                                                    "name": "argument",
                                                    "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}},
                                    {
                                      "name": "argument",
                                      "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg1"}}}}]}}}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.test.utils.inferTestGroupTerms"}}}]}}}}}]}