MCPcopy Create free account

hub / github.com/bradleyfalzon/gopherci / functions

Functions222 in github.com/bradleyfalzon/gopherci

↓ 1 callersMethodScan
Scan implements the sql.Scanner interface.
internal/db/db.go:51
↓ 1 callersFunctionSignalHandler
SignalHandler listens for a shutdown signal and calls cancel, if multiple signals are received in short succession, forcible quit.
health-check.go:20
↓ 1 callersMethodStartAnalysis
StartAnalysis records a new analysis. RequestNumber is a GitHub Pull Request ID (or Merge Request) and may be 0 for none, if 0 commitTo must be set, b
internal/db/db.go:25
↓ 1 callersMethodStartAnalysis
StartAnalysis implements the DB interface.
internal/db/mockdb.go:66
↓ 1 callersFunctionSuppress
Suppress returns a maximum amount of issues, if any are suppressed the total number suppressed is also returned.
internal/analyser/reporter.go:21
↓ 1 callersMethodValue
Value implements the driver.Valuer interface.
internal/db/db.go:116
↓ 1 callersMethodWriteExecution
WriteExecution writes the results of an execution to the database.
internal/db/sqldb.go:256
↓ 1 callersMethoddelete
delete deletes the topic and subcriptions, used to cleanup unit tests.
internal/queue/gcp-pubsub.go:190
↓ 1 callersMethodmktemp
(base, goSrcPath string)
internal/analyser/filesystem.go:63
↓ 1 callersMethodnewInstallationTransport
(installationID int)
internal/github/github.go:51
↓ 1 callersMethodqueue
queue adds a message to the queue.
internal/queue/gcp-pubsub.go:126
↓ 1 callersMethodreceive
receive calls sub.Receive, which blocks forever waiting for new jobs.
internal/queue/gcp-pubsub.go:161
↓ 1 callersMethodreceive
receive polls the queue for new jobs and sends them on the pop channel.
internal/queue/memory.go:57
↓ 1 callersMethodstartGopherCI
startGopherCI runs gopherci in the background and returns a function to be called when it should be terminated. Writes output to test log functions so
integration_test.go:95
MethodAddGHInstallation
AddGHInstallation implements the DB interface.
internal/db/sqldb.go:55
MethodAnalysisHandler
AnalysisHandler displays a single analysis.
internal/web/web.go:66
MethodAnalysisOutputs
AnalysisOutputs implements the DB interface.
internal/db/sqldb.go:240
MethodAnalysisOutputs
AnalysisOutputs implements the DB interface.
internal/db/mockdb.go:86
MethodClone
(context.Context, Executer)
internal/analyser/analyser_test.go:34
MethodDebug
Debug implements the Logger interface.
internal/logger/logger.go:91
MethodDebugf
Debugf implements the Logger interface.
internal/logger/logger.go:96
MethodError
Error implements the error interface.
internal/analyser/analyser.go:57
MethodError
Error implements the Logger interface.
internal/logger/logger.go:111
MethodError
Error implements the error interface.
internal/github/handlers.go:156
MethodErrorf
Errorf implements the Logger interface.
internal/logger/logger.go:116
MethodExecRecorder
ExecRecorder implements the DB interface.
internal/db/sqldb.go:247
MethodExecRecorder
ExecRecorder implements the DB interface.
internal/db/mockdb.go:91
MethodExecute
Execute implements the Executer interface
internal/analyser/filesystem.go:75
MethodExecute
(_ context.Context, args []string)
internal/analyser/analyser_test.go:21
MethodExecute
(_ context.Context, args []string)
internal/github/handlers_test.go:61
MethodExecute
Execute implements the Execute interface by running the wrapped executer and storing the results in an SQL database.
internal/db/sqldb.go:308
MethodFatal
Fatal implements the Logger interface.
internal/logger/logger.go:121
MethodFatalf
Fatalf implements the Logger interface.
internal/logger/logger.go:126
MethodFinishAnalysis
FinishAnalysis implements the DB interface.
internal/db/sqldb.go:133
MethodFinishAnalysis
FinishAnalysis implements the DB interface.
internal/db/mockdb.go:76
MethodGetAnalysis
GetAnalysis implements the DB interface.
internal/db/sqldb.go:170
MethodGetAnalysis
GetAnalysis implements the DB interface.
internal/db/mockdb.go:81
MethodGetGHInstallation
GetGHInstallation implements the DB interface.
internal/db/sqldb.go:70
FunctionHealthCheckHandler
HealthCheckHandler checks whether the instance is shutting down, and if so, responds with 503 Service Unavailable.
health-check.go:42
MethodInfo
Info implements the Logger interface.
internal/logger/logger.go:101
MethodInfof
Infof implements the Logger interface.
internal/logger/logger.go:106
MethodIsEnabled
IsEnabled returns true if the installation is enabled.
internal/db/db.go:81
MethodListTools
ListTools implements the DB interface.
internal/db/sqldb.go:98
MethodListTools
ListTools implements DB interface
internal/db/mockdb.go:61
MethodNewExecuter
(_ context.Context, goSrcPath string)
internal/github/handlers_test.go:57
FunctionNewSQLDB
NewSQLDB returns an SQLDB.
internal/db/sqldb.go:26
FunctionNewWeb
NewWeb returns a new Web instance, or an error.
internal/web/web.go:24
MethodProcess
queueListen listens for jobs on the queue and executes the relevant handlers.
main.go:236
MethodRead
(context.Context, Executer)
internal/analyser/analyser_test.go:44
MethodRemoveGHInstallation
RemoveGHInstallation implements the DB interface.
internal/db/sqldb.go:64
MethodReport
Report implements the analyser.Reporter interface.
internal/github/reporters.go:165
MethodStartAnalysis
StartAnalysis implements the DB interface.
internal/db/sqldb.go:105
MethodStop
Stop implements the Executer interface
internal/analyser/filesystem.go:93
MethodStop
(_ context.Context)
internal/analyser/analyser_test.go:28
MethodStop
(_ context.Context)
internal/github/handlers_test.go:79
MethodStop
Stop implements the Execute interface.
internal/db/sqldb.go:323
FunctionTestAPTPackagesCGO
TestAPTPackagesCGO tests that cgo dependencies are installed via apt-get.
integration_test.go:516
FunctionTestAnalyse
(t *testing.T)
internal/analyser/analyser_test.go:48
FunctionTestAnalyse
(t *testing.T)
internal/github/handlers_test.go:666
FunctionTestAnalyse_disabled
(t *testing.T)
internal/github/handlers_test.go:763
FunctionTestAnalysisFiles
(t *testing.T)
internal/web/vcsviewer_test.go:12
FunctionTestAnalysisStatus_scan
(t *testing.T)
internal/db/db_test.go:10
FunctionTestAnalysisView
TestAnalysisView tests the HTML generated when viewing an analysis.
integration_test.go:435
FunctionTestAnalysis_htmlurl
(t *testing.T)
internal/db/db_test.go:94
FunctionTestAnalysis_isPush
(t *testing.T)
internal/db/db_test.go:103
FunctionTestAnalysis_issues
(t *testing.T)
internal/db/db_test.go:79
FunctionTestCallbackHandler
(t *testing.T)
internal/github/handlers_test.go:101
FunctionTestCheckPRAccessible
(t *testing.T)
internal/github/handlers_test.go:450
FunctionTestCheckPRAction
(t *testing.T)
internal/github/handlers_test.go:364
FunctionTestCheckPRAffectsGo
(t *testing.T)
internal/github/handlers_test.go:407
FunctionTestCheckPushAffectsGo
(t *testing.T)
internal/github/handlers_test.go:384
FunctionTestCommitCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:196
FunctionTestDedupePRIssues
(t *testing.T)
internal/github/reporters_test.go:20
FunctionTestDocker
(t *testing.T)
internal/analyser/docker_test.go:12
FunctionTestDuration_scan
(t *testing.T)
internal/db/db_test.go:36
FunctionTestDuration_string
(t *testing.T)
internal/db/db_test.go:71
FunctionTestDuration_value
(t *testing.T)
internal/db/db_test.go:60
FunctionTestFileSystem
(t *testing.T)
internal/analyser/filesystem_test.go:19
FunctionTestFixedRef
(t *testing.T)
internal/analyser/refReader_test.go:53
FunctionTestGCPPubSubQueue
(t *testing.T)
internal/queue/gcp-pubsub_test.go:19
FunctionTestGCPPubSubQueue_timeout
(t *testing.T)
internal/queue/gcp-pubsub_test.go:72
FunctionTestGetPatch
(t *testing.T)
internal/analyser/analyser_test.go:152
FunctionTestGetPatch_diffError
(t *testing.T)
internal/analyser/analyser_test.go:182
FunctionTestGitHubComments_ignoreGenerated
(t *testing.T)
integration_test.go:352
FunctionTestGitHubComments_none
(t *testing.T)
integration_test.go:388
FunctionTestGitHubComments_pr
(t *testing.T)
integration_test.go:274
FunctionTestGitHubComments_pushMultiple
TestGitHubComments_pushMultiple tests pushing multiple commits which should create a single summary commit comment.
integration_test.go:178
FunctionTestGitHubComments_pushSingle
TestGitHubComments_pushSingle tests pushing a single commit which should create an inline commit comment.
integration_test.go:227
FunctionTestInlineCommitCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:272
FunctionTestInstallAPTPackages
(t *testing.T)
internal/analyser/analyser_test.go:215
FunctionTestInstallation_diff
(t *testing.T)
internal/github/installation_test.go:27
FunctionTestInstallation_isEnabled
(t *testing.T)
internal/github/installation_test.go:16
FunctionTestIntegrationInstallationEvent
(t *testing.T)
internal/github/handlers_test.go:495
FunctionTestLogger
(t *testing.T)
internal/logger/logger_test.go:9
FunctionTestMemoryQueue
(t *testing.T)
internal/queue/memory_test.go:12
FunctionTestMergeBase
(t *testing.T)
internal/analyser/refReader_test.go:10
FunctionTestMissingBeforeRef
TestMissingBeforeBranch tests the case where the before ref does not exist, such as branch tracking different tree.
integration_test.go:503
FunctionTestMockDB
(t *testing.T)
internal/db/mockdb_test.go:8
FunctionTestNewFileSystem_notExist
(t *testing.T)
internal/analyser/filesystem_test.go:10
FunctionTestPRCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:81
← previousnext →101–200 of 222, ranked by callers