feat: add PawSQL docs examples and image CI
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m28s

This commit is contained in:
2026-09-15 18:49:26 -04:00
commit 865f7c26c9
25 changed files with 2811 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package postgres
import "testing"
func TestPostgresDataMount(t *testing.T) {
tests := []struct {
image string
want string
}{
{"postgres:16", "/var/lib/postgresql/data"},
{"postgres:17", "/var/lib/postgresql/data"},
{"postgres:18", "/var/lib/postgresql"},
}
for _, test := range tests {
if got := postgresDataMount(test.image); got != test.want {
t.Errorf("postgresDataMount(%q) = %q, want %q", test.image, got, test.want)
}
}
}