Test :: Uscita

Utilities per testare i messaggi STDDOUT e STDERR
Scarica ora

Test :: Uscita Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • Perl Artistic License
  • Prezzo:
  • FREE
  • Nome editore:
  • brian d foy
  • Sito web dell'editore:
  • http://search.cpan.org/~bdfoy/

Test :: Uscita Tag


Test :: Uscita Descrizione

Test :: L'uscita è un modulo perl che fornisce un'interfaccia semplice per il test dell'uscita inviata a stdout o stderr. Un certo numero di utilità diverse è incluso per cercare di essere il più flessibile possibile al tester.IGINALMENTE Questo modulo è stato progettato per non avere requisiti esterni, tuttavia, le funzionalità fornite da Sub :: Esportatore su ciò che Exportatore fornisce è solo perfetto per passare up.test :: Eliminazione Ties Stdout e Stderr Uso del test :: Uscita :: Tie.synopsis Uso Test :: Altri test => 4; Usa Test :: Uscita; sub scrittore {stampa "Scrivi. \ n"; Stampa STDERR "Errore. \ N"; } stdout_is (\ writer ", scrivi. \ n", 'test stdout'); STDERR_ISNT (\ Writer, "Nessun errore. \ N", 'Test STDERR'); Combinate_is (\ Writer ", scrivi. \ Nerror out. \ n", 'test stdout e stderr combinato'); output_is (\ writer ", scrivi. \ n", "Errore. \ n", "prova stdout e stderr '); # Usa blocchi nudi. stdout_is {stampa "Test"} "Test", "test stdout"; STDERR_ISNT {stampa "Bad Test"} "Test", "Test STDERR"; output_is {stampa 'stdout'; Stampa STDERR 'STDERR'} "STDOUT", "STDERR", "TEST Uscita"; Homepage del prodotto


Test :: Uscita Software correlato