MCPcopy
hub / github.com/gogf/gf / Fatal

Function Fatal

test/gtest/gtest_util.go:318–324  ·  view source on GitHub ↗

Fatal prints `message` to stderr and exit the process.

(message ...any)

Source from the content-addressed store, hash-verified

316
317// Fatal prints `message` to stderr and exit the process.
318func Fatal(message ...any) {
319 _, _ = fmt.Fprintf(
320 os.Stderr, "[FATAL] %s\n%s", fmt.Sprint(message...),
321 gdebug.StackWithFilter([]string{pathFilterKey}),
322 )
323 os.Exit(1)
324}
325
326// compareMap compares two maps, returns nil if they are equal, or else returns error.
327func compareMap(value, expect any) error {

Callers 15

Test_DB_ToJsonFunction · 0.92
Test_DB_ToXmlFunction · 0.92
Test_DB_ToStringMapFunction · 0.92
Test_DB_ToIntMapFunction · 0.92
Test_DB_ToUintMapFunction · 0.92
Test_DB_ToStringRecordFunction · 0.92
Test_DB_ToIntRecordFunction · 0.92
Test_DB_ToUintRecordFunction · 0.92
Test_DB_TableFieldFunction · 0.92
Test_DB_UpdateCounterFunction · 0.92
Test_TableNameIsKeywordFunction · 0.92
createTableWithDbFunction · 0.92

Calls 2

StackWithFilterFunction · 0.92
ExitMethod · 0.80

Tested by 15

Test_DB_ToJsonFunction · 0.74
Test_DB_ToXmlFunction · 0.74
Test_DB_ToStringMapFunction · 0.74
Test_DB_ToIntMapFunction · 0.74
Test_DB_ToUintMapFunction · 0.74
Test_DB_ToStringRecordFunction · 0.74
Test_DB_ToIntRecordFunction · 0.74
Test_DB_ToUintRecordFunction · 0.74
Test_DB_TableFieldFunction · 0.74
Test_DB_UpdateCounterFunction · 0.74
Test_TableNameIsKeywordFunction · 0.74
createTableWithDbFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…