Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

marcus (4582)


My Modules:
GraphViz::ISA::Multi (unreleased)

Computer geek who studies computer science to become a Master of his Science, playing with Parrot, Perl and all the rest just for fun - did I mention geek?

Journal of marcus (4582)

Monday October 06, 2003
03:09 PM

Testing Curses::UI 2 &

[ #15094 ]
OK, had a rather short day in university and thus a rather productive day at home, geeee. The short day in university was because we got a new practicing class in which we do --- Shellscripting. Will give me 2 hours of free time each week in this term :-)

The problem with testing Curses::UI vanished after having some good idea: as I didn't want to test but Curses::UI I thought --- tada --- just replace it.

Take, strip out all the code you don't need, use AUTOLOAD to define everything that is actually in @EXPORT and there you go. I just had to implement five functions myself, because Curses::UI expected different behaviour (shame on me, I forgot that @_ is just a list of references to the original values) and I had a running Curses::UI without actual Curses calls. That made me happy.

Current count is about 98 tests, without doing really edge case testing or fault testing or testing complex things like the event system, but I think it is quite good. Will invest some more time and then release 0.8 (my precious).

(What I forgot in my we summary was that I spend some time on forcing MPlayer to playback the audio in the LOTR:ROTK trailer, therefore I'm a little ringish at the moment)

Did some work on CPANPLUS::Shell::Curses too, now it has colors (ugly red and green, but I like it). Is in CVS, the problem is that I had a bug in the Color support for status widgets and thus have to wait for me releasing Curses::UI 0.8 until I can release C::S::C 0.5 (I decided to go with the minor number of CPANPLUS to keep a better track of with witch version it works). And I added a test for the Pod. I think it is an easy way to get a test more :-) (Maybe I should start using Acme::Test)

Ehm... yes. Ah, It's rather a quickhack than a Module, but I wanted to play webradios (Kohina) in a comfortable way (it is a Curses::UI Perl interface). I found the -slave option in MPlayer and thought it would be fun to implement the Perl Bindings, but the slave mode is (sorry) crap. Not really supported (as MPlayer is (I've never seen such an unfriendly mailinglist, they add automatically a "RTFM" message to every email)) and it does not really give featback. I don't know whether to put it on CPAN (have a look into it from my homepage and tell me). BTW I'm not sure whether to keep the name, too. Claiming a first level namespace is always.... ehm ... sticky. (But it is quite idiomatic use MPlayer;). We'll see.

Take a couple of hours of sleep now and think about new creative tests. And about when to release which module where (maybe CPAN :-).

Good night
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.