mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-20 06:31:32 +03:00
3180334c0c
* refactor: partially moved over driver.Tuning params to options * All knobs moved to options * sq config edit: now has comments for options * Major work complete on config/options overhaul * Major work complete on config/options overhaul * Updated help text for 'sq version'
21 lines
291 B
Go
21 lines
291 B
Go
package lg_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/neilotoole/slogt"
|
|
|
|
"github.com/neilotoole/sq/libsq/core/lg"
|
|
)
|
|
|
|
func TestContext(t *testing.T) {
|
|
ctx := context.Background()
|
|
log := slogt.New(t)
|
|
|
|
ctx = lg.NewContext(ctx, log)
|
|
log = lg.FromContext(ctx)
|
|
|
|
log.Info("huzzah")
|
|
}
|