vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554)

This commit is contained in:
Delyan Angelov 2024-05-23 16:21:01 +03:00 committed by GitHub
parent 373b91cd68
commit dbc6b50cda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 11278 additions and 222 deletions

View file

@ -1,6 +1,11 @@
import db.mysql
fn test_mysql() {
$if !network ? {
eprintln('> Skipping test ${@FN}, since `-d network` is not passed.')
eprintln('> This test requires a working mysql server running on localhost.')
return
}
config := mysql.Config{
host: '127.0.0.1'
port: 3306