• Stars
    star
    3
  • Rank 3,937,279 (Top 79 %)
  • Language
    Perl
  • License
    Other
  • Created about 13 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Actions Status

NAME

Test::Time - Overrides the time() and sleep() core functions for testing

SYNOPSIS

use Test::Time;

# Freeze time
my $now = time();

# Increment internal time (returns immediately)
sleep 1;

# Return internal time incremented by 1
my $then = time();

DESCRIPTION

Test::Time can be used to test modules that deal with time. Once you use this module, all references to time, localtime and sleep will be internalized. You can set custom time by passing time => number after the use statement:

use Test::Time time => 1;

my $now = time;    # $now is equal to 1
sleep 300;         # returns immediately, displaying a note
my $then = time;   # $then equals to 301

AUTHOR

cho45 [email protected]

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

More Repositories

1

KeyCast

Record keystroke for screencast
Swift
530
star
2

jsdeferred

Asynchronous library in JavaScript. Standalone and Compact.
JavaScript
332
star
3

net-irc

Ruby IRC library (Client, Server and many IRC gateways to webservice)
Ruby
123
star
4

NanoVNA-Web-Client

NanoVNA interface implementation with WebSerial/WebUSB/Android.
JavaScript
74
star
5

kicad-utils

KiCAD library / schematic / pcb parser and plotter written in TypeScript (JavaScript)
JavaScript
73
star
6

GrblServer

JavaScript
64
star
7

Chemrtron

A document viewer; fuzzy match incremental search.
JavaScript
61
star
8

micro-template.js

A template engine on JavaScript which like embed js
JavaScript
51
star
9

String_random.js

JavaScript
50
star
10

micro-location.js

Standalone location (URL) object for both browser and node.js
JavaScript
39
star
11

imhacker

A real-time access log analyzer.
JavaScript
37
star
12

hackrf-sweep-webusb

HackRF Sweep WebUSB
JavaScript
37
star
13

WebAudio-Modem

Modem implementation with WebAudio (JavaScript)
HTML
34
star
14

named-regexp.js

Append named-capture feature to JavaScript RegExp
JavaScript
29
star
15

hid2hcix

Tiny hid2hci implementation for CSR Bluetooth Dongle
C
27
star
16

flashair

my FlashAir HTML
HTML
27
star
17

pit

config pit gem
Ruby
25
star
18

Niro

Blogging System for personal use written in Perl.
Perl
24
star
19

starter.pl

Perl
22
star
20

tasscss

Ultimate lightweight stylesheet language like SASS(SCSS) or LESS.
JavaScript
22
star
21

niz-tools-ruby

Ruby tools for NiZ PLUM keyboard
Ruby
22
star
22

ruby-i2c-devices

i2c-devices is a library for using I2C devices by using /dev/i2c-* or /sys/class/gpio with bit-banging.
Ruby
22
star
23

reedsolomon.js

Reed Solomon Coding in JavaScript (from Zxing)
JavaScript
21
star
24

CopyHook

An application for manipulating pasteboard for OS X.
Swift
20
star
25

dotfiles

my dotfiles
Vim Script
20
star
26

hookhub

Scala
18
star
27

jAutoPagerize

A clone of AutoPagerize
JavaScript
17
star
28

gitalone

gitalone is local git repositories viewer like github. (Ruby)
Ruby
16
star
29

chemr-js

Re-implement Chemr (Reference Viewer) on Greasemonkey
JavaScript
15
star
30

NanoVNA-manual

Ruby
14
star
31

Chord

Chord is Application framework for web (now sketching)
Perl
14
star
32

Text-Xatena

Perl module for parsing Xatena syntax (like Hatena syntax)
Perl
14
star
33

node-here.js

Here-document on node.js
JavaScript
13
star
34

Plack-Middleware-StaticShared

Plack middleware for serving resource that is concatnated some static files
Perl
12
star
35

mqtt_topic_exporter

Subscribe MQTT topics and export them to prometheus.
Go
10
star
36

Plack-App-CocProxy

Perl
10
star
37

micro-strptime.js

micro strptime implementation on JavaScript
JavaScript
10
star
38

Irssw

irssi web interface
JavaScript
10
star
39

esp8266-esp-now-sample

C++
10
star
40

Plack-Middleware-ServerStatus

Setup server status page like Apache on /server-status
Perl
10
star
41

bdfcanvas

BDF Font Parser for JavaScript
JavaScript
10
star
42

WebAudio-Signal-Generator

Generate sine/square/sawtooth/triangle waveforms and white/pink/brown noise with WebAudio.
JavaScript
10
star
43

complex-analyser-node

WebAudio ComplexAnalyserNode using AudioWorklet and WebAssembly.
JavaScript
9
star
44

raspberrypi-mruby-bare-metal

ηΏ’δ½œγ§γ™
C
9
star
45

Chemr

Chemr is a CHM (Compiled HTML Help) reader for Mac OS X written in Ruby.
Ruby
8
star
46

cutagem

Very customable gem skelton generator (Ruby)
Ruby
8
star
47

List-Enumerator

List::Enumerator is like ruby's Enumerator. (Perl)
Perl
8
star
48

WebAudio-RTTY

JavaScript
7
star
49

go-KX3-panadapter

A Panadapter (band-scope) implementation written in golang for Mac OS X
JavaScript
7
star
50

Test-Name-FromLine

Auto fill test names from caller line
Perl
7
star
51

blosxasm-arm-linux-eabi

Assembly
6
star
52

JackPlug

Parallel executor shell of any browsers.
JavaScript
6
star
53

Config-ENV

Perl
6
star
54

libphoto

HTML
6
star
55

histogram-as

Small script for showing histogram (AS3)
ActionScript
6
star
56

Keble

Keyboard project
Python
5
star
57

SQL-NamedPlaceholder

Perl
5
star
58

Config-Pit

Perl
5
star
59

ioke

just another Rake in Io (Io)
Io
5
star
60

keyString.js

JavaScript
5
star
61

theruck

Small web application framework (Ruby)
Ruby
5
star
62

middown

Middown is a downloader.
JavaScript
5
star
63

HTML-Microdata

Perl
4
star
64

future

future is an asynchronous library (Ruby)
Ruby
4
star
65

micro-log.js

JavaScript
4
star
66

hatena-login-googlechrome-extension

JavaScript
4
star
67

Arduino-meta

C++
4
star
68

flay

Flay is HTTP via Flash library (AS3, JS)
JavaScript
4
star
69

rollover-js

rollover.js is BAD LIBRARY (JavaScript)
JavaScript
4
star
70

AVR-V-USB-Vendor-Skelton

C
4
star
71

rtx1200_exporter

RTX1200 prometheus exporter
Lua
4
star
72

rb-chm

chmlib ruby binding
C
3
star
73

NanoVNA-Remote

Makefile
3
star
74

uneval.js

JavaScript
3
star
75

hash-multivalue.js

JavaScript
3
star
76

QCdirect

Take 9V/12V from QuickCharge 2.0 batteries
Eagle
3
star
77

unblosxom

Perl
3
star
78

Encode-BaseN

Perl
3
star
79

Test-HTML-Differences

Perl module for testing HTML structure
Perl
3
star
80

node-glint

Setup temporary (for test) TCP server with random port number like Test::TCP (Perl) or Glint (Ruby).
JavaScript
3
star
81

APD

Anything Protocol for Download
3
star
82

Nogag

JavaScript
3
star
83

HTML-Trim

Perl
3
star
84

microvert

Designing Tool for MicroVert Antenna
JavaScript
3
star
85

config-env.js

config-env is for switching various configurations by environment variable.
JavaScript
3
star
86

Text-Overflow

Perl
3
star
87

WebAudio-Node-More

JavaScript
3
star
88

rb-shipit

Rake tasks for releasing gem.
Ruby
3
star
89

catstarter-pl

Startup script for Catalyst (Perl)
Perl
3
star
90

uni-t-thermal-utils

JavaScript
2
star
91

stm32f401-usbserial-host

stm32f401-usbserial-host proxy usb cdc to uart
C
2
star
92

complex-fir-filter-node

JavaScript
2
star
93

WebAudio-UART

Direct connection to serial device
JavaScript
2
star
94

imreadingnfeeds

show reading feed number / blogparts for livedoor Reader
JavaScript
2
star
95

Ecole

JavaScript
2
star
96

starnode

JavaScript
2
star
97

Prosigns

USB CW (Morse) interface written with AVR V-SUB for ham radio
JavaScript
2
star
98

FormValidator-Simple-Plugin-V8

Perl
2
star
99

hatena-ignore-googlechrome-extension

JavaScript
2
star
100

createElementFromString

JavaScript
2
star