Daisuke Maki
3a4730167a
Fix "lien" typo in test assertion message
2026-02-18 15:56:31 +09:00
Daisuke Maki
d1e5b18232
Replace testify/assert with testify/require
2026-02-18 14:46:06 +09:00
Daisuke Maki
a77cad279a
Appease linter
2026-02-18 09:27:34 +09:00
Daisuke Maki
8d5a0f672c
Check scanner.Err() after scan loop
2026-02-18 09:20:04 +09:00
Daisuke Maki
46331edcfd
Check for far wider range of things in lint
2026-02-18 07:49:40 +09:00
Daisuke Maki
310e11700f
use require.Eventually
2026-02-17 07:10:16 +09:00
Daisuke Maki
49f7153598
Add ANSI color support
2026-02-16 20:06:53 +09:00
Daisuke Maki
143638649c
Add a new flag to pass to NewSource to detect infinite source
...
my previous detection for continueous input was completely wrong.
Now we just assume that anything coming in from Stdin could be infinite.
Additionally, in case we think it's infinite but we were actually able
to close the Reader stream, we consider it non-infinite after that
point.
2020-01-10 09:28:39 +09:00
Daisuke Maki
f3e9250486
Add some environment variables
2017-03-06 17:06:50 +09:00
Daisuke Maki
75d0d54da6
Fix test
2017-03-03 15:52:42 +09:00
Daisuke Maki
61b5d22fb8
Move stuff around for better code organization
2016-12-14 11:00:22 +09:00
Daisuke Maki
c8a43049f3
Use an interface for peco.Hub()
...
This allows us to plug a dummy hub.Hub instance, and avoid nasty
code for testing
2016-10-22 10:50:55 +09:00
Daisuke Maki
bf00034e15
Pass ctx in the test, too
2016-10-22 10:31:22 +09:00
Daisuke Maki
2c735b9f29
Test, and fix options
...
I should've done this a long time ago, but what's done is done.
There was one more omission between v0.3.x and v0.4.x, which is
buffer-size :/
At least I'm glad I got this out of the way.
2016-09-03 19:54:52 +09:00
Daisuke Maki
7f70d73996
pass the id generator instead of state
2016-07-01 15:26:56 +09:00
Daisuke Maki
39031fd1f1
gofmt stuff
2016-06-18 17:40:33 +09:00
Daisuke Maki
d5381eeee4
Cleanup
2016-06-18 17:40:33 +09:00
Daisuke Maki
417be36cfb
More refactoring around current position/location state
2016-06-18 17:39:02 +09:00
Daisuke Maki
406cfe3bd7
Trying to get rid of "everything is a Ctx"
2016-06-18 17:39:02 +09:00