// TestInterface performs all interfaces tests for this database driver.
func TestInterface(t *testing.T) {
// dbType is the database type name for this driver.
dir := t.TempDir()
ctx := context.Background()
pragmaOptions := []struct {
name string
value string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import time | |
# Initialize the webcam | |
cap = cv2.VideoCapture(0) | |
# Or alternatively read from file. Handy for development so that you don't need to keep working out to test. | |
# cap = cv2.VideoCapture('cable.mov') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go:build kvdb_sqlite && !(windows && (arm || 386)) && !(linux && (ppc64 || mips || mipsle || mips64)) | |
package sqlite | |
import ( | |
"database/sql" | |
"fmt" | |
"net/url" | |
"path/filepath" | |
"testing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-07-11T09:55:48.951+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:55:48.951+0200 INFO Success packet {"source": "user"} | |
2022-07-11T09:55:48.962+0200 INFO Success packet {"source": "spammer-0"} | |
2022-07-11T09:55:48.973+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:55:48.984+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:55:49.058+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:55:49.153+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:55:49.280+0200 INFO Success packet {"source": "spammer-0"} | |
2022-07-11T09:55:49.364+0200 INFO Success packet {"source": "spammer-0"} | |
2022-07-11T09:55:49.451+0200 INFO Success packet {"source": "user"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-07-11T09:13:29.882+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:13:29.882+0200 INFO Success packet {"source": "user"} | |
2022-07-11T09:13:29.963+0200 INFO Success packet {"source": "spammer-0"} | |
2022-07-11T09:13:30.044+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:13:30.125+0200 INFO Success packet {"source": "spammer-2"} | |
2022-07-11T09:13:30.206+0200 INFO Success packet {"source": "spammer-1"} | |
2022-07-11T09:13:30.287+0200 INFO Success packet {"source": "spammer-0"} | |
2022-07-11T09:13:30.369+0200 INFO Success packet {"source": "spammer-1"} | |
2022-07-11T09:13:30.383+0200 INFO Success packet {"source": "user"} | |
2022-07-11T09:13:30.450+0200 INFO Success packet {"source": "spammer-2"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
"go.uber.org/zap" | |
"go.uber.org/zap/zapcore" | |
"golang.org/x/time/rate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am joostjager on github. | |
* I am joostjager (https://keybase.io/joostjager) on keybase. | |
* I have a public key ASA7OiG3hLAzgvmFIhLEancXsDU9N6LRmtEnIUwZXZT3mwo | |
To claim this, I am signing this object: |