Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TIP#208: Finish implementation (chan command)

Closed / Fixed1216074fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 18 years ago
Descriptionplain2005-06-07 00:03:20
More docs
More tests
Implement on non-POSIX (Win only?)
dkfplain2005-06-08 04:58:29
Logged In: YES 
user_id=79902

Implemented on Win
andreas_kupriesplain2005-08-30 04:41:18
Logged In: YES 
user_id=75003

As far as I can see this has been implemented by JeffH for
Unix as well, including docs and tests.
dkfplain2005-09-01 21:31:29
Logged In: YES 
user_id=79902

No, this bug is a reminder to write *more* docs (e.g.
examples) and *more* tests (we've only got one test of
functional behaviour right now)
andreas_kupries Ticket [1216074fff]: 1 change [History diff]2005-10-06 01:15:25
dgp Ticket [1216074fff]: 1 change [History diff]2007-10-31 23:33:50
andreas_kupriesplain2007-11-06 03:55:09
Logged In: YES 
user_id=75003
Originator: NO

#208, that is the general 'chan' ensemble command for the various channel ops.
One test of functional behavior ? Which ? Where ?

I find lots in iocmd.test for 'chan postevent', 'chane create', i.e. the #219 reflection, and also some in chan.test ... Ok, the latter seems to be mostly 'chan pending' (#287) and syntax error conditions.

I guess that for testing we could in general copy the tests from io.test to chan.test and then modify them for the new 'chan' syntax, right?
Regarding more examples, it seems that we would have to copy the examples of the old channel commands and add them to chan.n. Sufficient ?
andreas_kupriesplain2007-11-07 01:34:23
File Added - 253103: chanio.test.gz

Logged In: YES 
user_id=75003
Originator: NO

Attached a chanio.test. This is basically 'io.test' with all suitable commnds rewritten to their 'chan' form.

File Added: chanio.test.gz
andreas_kupriesplain2007-11-15 02:54:36
Logged In: YES 
user_id=75003
Originator: NO

The file chanio.test has been committed now.
Nothing done for examples yet.
dkfplain2007-11-15 03:15:17
Logged In: YES 
user_id=79902
Originator: YES

Remember with examples: they don't need to be complete. It's enough to just tantalize and hint what you can do with the commands documented. :-)
dkfplain2009-01-30 18:35:27
allow_comments - 1

There are now two examples that demonstrate various subcommands. Should be good enough for now.
Log in (anonymous is fine) to add a comment.

Attachments: