mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-03 07:27:42 +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.")
|
log.Fatal("PHPUnit output is empty. Please check your configuration.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(output.String())
|
||||||
|
|
||||||
// Parse the JSON output
|
// Parse the JSON output
|
||||||
var result map[string]interface{}
|
var result map[string]interface{}
|
||||||
if err := json.Unmarshal(output.Bytes(), &result); err != nil {
|
if err := json.Unmarshal(output.Bytes(), &result); err != nil {
|
||||||
@@ -68,8 +70,6 @@ func main() {
|
|||||||
log.Fatal("Counts field not found in PHPUnit output.")
|
log.Fatal("Counts field not found in PHPUnit output.")
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(output.String())
|
|
||||||
|
|
||||||
// Serialize the counts field to JSON for the email body
|
// Serialize the counts field to JSON for the email body
|
||||||
countsJSON, err := json.MarshalIndent(counts, "", " ")
|
countsJSON, err := json.MarshalIndent(counts, "", " ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user