1. Test Modules
  2. Serialization
    1. Raw Json
  3. Results

Target Description: The type Assert dimensions layer.

Report Description: The type Basic.

Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase

Test Modules

Using Seed 2325792847284474880

Serialization

This apply will demonstrate the key's JSON serialization, and verify deserialization integrity.

Raw Json

SerializationTest.java:129 executed in 0.00 seconds (0.000 gc):

    final JsonObject json = layer.getJson().getAsJsonObject();
    @Nonnull final Layer echo = Layer.fromJson(json);
    if (layer == echo) {
      echo.freeRef();
      throw new AssertionError("Serialization did not copy");
    }
    if (!layer.equals(echo)) {
      echo.freeRef();
      throw new AssertionError("Serialization not equal");
    }
    echo.freeRef();
    return json;

Returns

    {
      "class": "com.simiacryptus.mindseye.layers.java.AssertDimensionsLayer",
      "id": "2ce24730-05a2-435c-8f52-1539fa35018b",
      "isFrozen": false,
      "name": "AssertDimensionsLayer",
      "dims": [
        2,
        2
      ]
    }

Wrote Model to AssertDimensionsLayer_jsonTest.json; 210 characters

LayerTests.java:605 executed in 0.00 seconds (0.000 gc):

    throwException(exceptions.addRef());

Results

classresult
com.simiacryptus.mindseye.test.unit.SerializationTestOK
  {
    "result": "OK",
    "performance": {
      "execution_time": "0.669",
      "gc_time": "0.405"
    },
    "created_on": 1587005898946,
    "file_name": "jsonTest",
    "report": {
      "simpleName": "Basic",
      "canonicalName": "com.simiacryptus.mindseye.layers.java.AssertDimensionsLayerTest.Basic",
      "link": "https://github.com/SimiaCryptus/mindseye-java/tree/c9a1867488dc7e77a975f095285b5882c0486db6/src/test/java/com/simiacryptus/mindseye/layers/java/AssertDimensionsLayerTest.java",
      "javaDoc": "The type Basic."
    },
    "archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/AssertDimensionsLayer/Basic/jsonTest/202004165818",
    "id": "d35be39e-e5ea-47c4-9579-bfc37b759771",
    "report_type": "Components",
    "display_name": "JSON Serialization",
    "target": {
      "simpleName": "AssertDimensionsLayer",
      "canonicalName": "com.simiacryptus.mindseye.layers.java.AssertDimensionsLayer",
      "link": "https://github.com/SimiaCryptus/mindseye-java/tree/c9a1867488dc7e77a975f095285b5882c0486db6/src/main/java/com/simiacryptus/mindseye/layers/java/AssertDimensionsLayer.java",
      "javaDoc": "The type Assert dimensions layer."
    }
  }