--- a
+++ b/project/device_b032fdcd/plc_logic_4bbe9722/application_8e35a463/fb_tests_91fe9bff/stack_377cdbf4/fb_payload_2aa27ef8/fb_payload_testsuite_bc77255a/readstructure_064322f1/test_readbody_4c939447/4c939447325d4bbca52ae6553570f60b.object
@@ -0,0 +1 @@
+{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)4c939447-325d-4bbc-a52a-e6553570f60b","ParentGuid":"(Guid)bc77255a-b8a1-4530-b798-1a47c64f0504","Name":"(string)Test_ReadBody","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)d9b2b2cc-ea99-4c3b-aa42-1e5c49e65b84","@Value":"(Guid)064322f1-c7a7-4d77-a2b7-4fd2a2415787"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)779","Tag":null,"Text":"(string)IF counit.TEST_ORDERED(__POUNAME()) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)829","Tag":null,"Text":"(string)\t// ReadBody with no body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)851","Tag":null,"Text":"(string)\tGenerateReadPayload3Metrics(payload := instFB_Payload, bodyPool := ADR(bodyPool));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)840","Tag":null,"Text":"(string)\tinstFB_Payload.ReadBody(Hasbody => HasBody, SizeBytes => SizeBytes, StartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)841","Tag":null,"Text":"(string)\tAssertEquals_BOOL(Expected := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)842","Tag":null,"Text":"(string)\t\tActual := HasBody,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)843","Tag":null,"Text":"(string)\t\tMessage := 'Payload had no body but ReadBody disagreed');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)844","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected := 0,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)845","Tag":null,"Text":"(string)\t\tActual := SizeBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)846","Tag":null,"Text":"(string)\t\tMessage := 'returned non-zero number of bytes when payload had no body');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)847","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected := 0,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)848","Tag":null,"Text":"(string)\t\tActual := StartIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)849","Tag":null,"Text":"(string)\t\tMessage := 'didn$'t set startIndex to 0 when there was no body in the payload');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)839","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)781","Tag":null,"Text":"(string)\t// Get a payload then readbody"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)782","Tag":null,"Text":"(string)\tGenerateReadPayload1Metric(payload := instFB_Payload, bodyPool := ADR(bodyPool));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)783","Tag":null,"Text":"(string)\tinstFB_Payload.ReadBody(Hasbody => HasBody, SizeBytes => SizeBytes, StartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)784","Tag":null,"Text":"(string)\tAssertEquals_BOOL(Expected := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)785","Tag":null,"Text":"(string)\t\tActual := HasBody,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)786","Tag":null,"Text":"(string)\t\tMessage := 'Payload had body but ReadBody disagreed');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)787","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected := 8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)788","Tag":null,"Text":"(string)\t\tActual := SizeBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)789","Tag":null,"Text":"(string)\t\tMessage := 'returned wrong number of bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)827","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected := 0,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)828","Tag":null,"Text":"(string)\t\tActual := StartIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)826","Tag":null,"Text":"(string)\t\tMessage := 'returned wrong number of bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)790","Tag":null,"Text":"(string)\tAssertEquals(Expected := Expected,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)791","Tag":null,"Text":"(string)\t\tActual := bodyPool, //8 bytes, strating at 0"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)792","Tag":null,"Text":"(string)\t\tMessage := 'body didn$'t match');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)824","Tag":null,"Text":"(string)\tTEST_FINISHED();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)227","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)766","Tag":null,"Text":"(string)// ReadBody With No Body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)850","Tag":null,"Text":"(string)// ReadBody With Body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)767","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)768","Tag":null,"Text":"(string)METHOD PRIVATE Test_ReadBody"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)769","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)770","Tag":null,"Text":"(string)\tinstFB_Payload : SPStack.FB_Payload;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)771","Tag":null,"Text":"(string)\tbodyPool : ARRAY [0..7] OF BYTE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)825","Tag":null,"Text":"(string)\tExpected : ARRAY [0..7] OF BYTE := [1,2,3,4,5,6,7,8];"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)772","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)773","Tag":null,"Text":"(string)\tExpected_NoError : SPStack.ERROR := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)774","Tag":null,"Text":"(string)\teError: SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)775","Tag":null,"Text":"(string)\tHasBody: BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)776","Tag":null,"Text":"(string)\tSizeBytes: DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)777","Tag":null,"Text":"(string)\tStartIndex: DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)778","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file