mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 09:16:59 +03:00
db55986980
- Support for ingest cache, download cache, and progress bars.
20 lines
303 B
Go
20 lines
303 B
Go
package lg_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/neilotoole/sq/libsq/core/lg"
|
|
"github.com/neilotoole/sq/libsq/core/lg/lgt"
|
|
)
|
|
|
|
func TestContext(t *testing.T) {
|
|
ctx := context.Background()
|
|
log := lgt.New(t)
|
|
|
|
ctx = lg.NewContext(ctx, log)
|
|
log = lg.FromContext(ctx)
|
|
|
|
log.Info("huzzah")
|
|
}
|