summaryrefslogtreecommitdiffstats
path: root/vendor/textalk/websocket/tests/scripts/client.close.json
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/textalk/websocket/tests/scripts/client.close.json')
-rw-r--r--vendor/textalk/websocket/tests/scripts/client.close.json76
1 files changed, 76 insertions, 0 deletions
diff --git a/vendor/textalk/websocket/tests/scripts/client.close.json b/vendor/textalk/websocket/tests/scripts/client.close.json
new file mode 100644
index 0000000..d449c17
--- /dev/null
+++ b/vendor/textalk/websocket/tests/scripts/client.close.json
@@ -0,0 +1,76 @@
+[
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fwrite",
+ "params": [],
+ "return": 12
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 2
+ ],
+ "return-op": "chr-array",
+ "return":[136, 154]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 4
+ ],
+ "return-op": "chr-array",
+ "return":[98, 250, 210, 113]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 26
+ ],
+ "return-op": "chr-array",
+ "return": [97, 18, 145, 29, 13, 137, 183, 81, 3, 153, 185, 31, 13, 141, 190, 20, 6, 157, 183, 21, 88, 218, 227, 65, 82, 202]
+ },
+ {
+ "function": "fclose",
+ "params": [
+ "@mock-stream"
+ ],
+ "return":true
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "Unknown"
+ }
+] \ No newline at end of file