Annotation of parser3/tests/redis/003.html, revision 1.1

1.1     ! moko        1: # connection options
        !             2: $r[^redis::open[ $.unix_socket[$env:REDIS_SOCKET] $.password[test] ]]
        !             3: 1. unix socket: ^r.ping[]
        !             4: 2. acl setuser: ^r.acl[SETUSER;alice;on;>secret;~*;+@all]
        !             5: $alice[^redis::open[ $.port(6399) $.user[alice] $.password[secret] ]]
        !             6: 3. user: ^alice.acl[WHOAMI]
        !             7: $r2[^open_redis[ $.protocol(2) ]]
        !             8: 4. protocol 2 auth: ^r2.ping[]
        !             9: $db1[^open_redis[ $.db(1) ]]
        !            10: 5. set in db 1: ^db1.set[only_in_1;x]
        !            11: $v[^r.get[only_in_1]]
        !            12: 6. db: ^db1.get[only_in_1] ^if($v is void){void in 0}
        !            13: 7. no password: ^failed{^redis::open[ $.port(6399) ]}
        !            14: 8. wrong password: ^failed{^redis::open[ $.port(6399) $.password[wrong] ]}
        !            15: 9. refused: ^failed{^redis::open[ $.port(1) ]}
        !            16: 10. unix socket and port: ^failed{^redis::open[ $.unix_socket[$env:REDIS_SOCKET] $.port(6399) ]}
        !            17: 11. invalid option: ^failed{^redis::open[ $.hots[localhost] ]}
        !            18: 12. protocol 4: ^failed{^redis::open[ $.protocol(4) ]}
        !            19: $t[^open_redis[ $.timeout(0.3) ]]
        !            20: 13. timeout: ^failed{^t.blpop[nolist;5]}

E-mail: