Skip to content

Instantly share code, notes, and snippets.

View pnmcosta's full-sized avatar
🥷
coding remotely

Pedro Maia Costa pnmcosta

🥷
coding remotely
View GitHub Profile
@pnmcosta
pnmcosta / computeFileHash.ps1
Created August 27, 2019 14:48
PS script to compute a new file hash for a modified BACPAC
param (
[string]$fileName = "model.xml"
)
If (Test-Path $fileName) {
$modelXmlPath = Resolve-Path $fileName
} else {
Write-Host ("File " + (Resolve-Path .) + "\" + $fileName + " does not exist");
exit;
}
@pnmcosta
pnmcosta / adapter.go
Last active July 31, 2023 09:07
Pocketbase ApiScenario TestAppFactory with mocks
package main
//go:generate go run -mod=mod github.com/golang/mock/mockgen -package main -destination=adapter_mock.go -source=./adapter.go -build_flags=-mod=mod
type (
ExternalAdapter interface {
ExternalCall() error
}
externalAdapter struct {
}