Update test and qldoc

This commit is contained in:
Joe Farebrother
2025-12-01 20:41:59 +00:00
parent 6fbae45d49
commit ac55cf9544
2 changed files with 7 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ module Websockets {
* calls, or a special parameter that will be set when functions are called by an external
* library.
*
* Use the predicate `WebSocket::instance()` to get references to instances of `websockets.asyncio.ServerConnection` and `websockets.sync.ServerConnection`.
* Use the predicate `ServerConnection::instance()` to get references to instances of `websockets.asyncio.ServerConnection` and `websockets.sync.ServerConnection`.
*/
abstract class InstanceSource extends DataFlow::LocalSourceNode { }

View File

@@ -34,13 +34,14 @@ s5 = websockets.sync.router.unix_route(Map([
if __name__ == "__main__":
import sys
server = s1
if len(sys.argv) > 1:
if sys.argv[1] == "kw":
args = sys.argv # $ threatModelSource[commandargs]=sys.argv
if len(args) > 1:
if args[1] == "kw":
server = s2
elif sys.argv[1] == "route":
elif args[1] == "route":
server = s3
elif sys.argv[1] == "unix":
elif args[1] == "unix":
server = s4
elif sys.argv[1] == "unix_route":
elif args[1] == "unix_route":
server = s5
server.serve_forever()