mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-02 23:17:43 +00:00
tdd - move output above error
This commit is contained in:
@@ -56,6 +56,8 @@ func main() {
|
||||
log.Fatal("PHPUnit output is empty. Please check your configuration.")
|
||||
}
|
||||
|
||||
fmt.Println(output.String())
|
||||
|
||||
// Parse the JSON output
|
||||
var result map[string]interface{}
|
||||
if err := json.Unmarshal(output.Bytes(), &result); err != nil {
|
||||
@@ -68,8 +70,6 @@ func main() {
|
||||
log.Fatal("Counts field not found in PHPUnit output.")
|
||||
}
|
||||
|
||||
fmt.Println(output.String())
|
||||
|
||||
// Serialize the counts field to JSON for the email body
|
||||
countsJSON, err := json.MarshalIndent(counts, "", " ")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user