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

Target Description: The type Img band scale layer.

Report Description: The type Basic.

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

Test Modules

Using Seed 3400381890848020480

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.ImgBandScaleLayer",
      "id": "1b262c6e-593b-40ae-ae6e-807b7fe9633e",
      "isFrozen": false,
      "name": "ImgBandScaleLayer",
      "bias": [
        -1.72,
        -1.028,
        -0.384
      ]
    }

Wrote Model to ImgBandScaleLayer_jsonTest.json; 223 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.480",
      "gc_time": "0.236"
    },
    "created_on": 1587004847237,
    "file_name": "jsonTest",
    "report": {
      "simpleName": "Basic",
      "canonicalName": "com.simiacryptus.mindseye.layers.java.ImgBandScaleLayerTest.Basic",
      "link": "https://github.com/SimiaCryptus/mindseye-java/tree/c9a1867488dc7e77a975f095285b5882c0486db6/src/test/java/com/simiacryptus/mindseye/layers/java/ImgBandScaleLayerTest.java",
      "javaDoc": "The type Basic."
    },
    "archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/ImgBandScaleLayer/Basic/jsonTest/202004164046",
    "id": "59f390fb-040c-44d6-bc56-f7ecc757ece5",
    "report_type": "Components",
    "display_name": "JSON Serialization",
    "target": {
      "simpleName": "ImgBandScaleLayer",
      "canonicalName": "com.simiacryptus.mindseye.layers.java.ImgBandScaleLayer",
      "link": "https://github.com/SimiaCryptus/mindseye-java/tree/c9a1867488dc7e77a975f095285b5882c0486db6/src/main/java/com/simiacryptus/mindseye/layers/java/ImgBandScaleLayer.java",
      "javaDoc": "The type Img band scale layer."
    }
  }