Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradleyfalzon/gopherci
/ functions
Functions
222 in github.com/bradleyfalzon/gopherci
⨍
Functions
222
◇
Types & classes
62
↓ 1 callers
Method
Scan
Scan implements the sql.Scanner interface.
internal/db/db.go:51
↓ 1 callers
Function
SignalHandler
SignalHandler listens for a shutdown signal and calls cancel, if multiple signals are received in short succession, forcible quit.
health-check.go:20
↓ 1 callers
Method
StartAnalysis
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 callers
Method
StartAnalysis
StartAnalysis implements the DB interface.
internal/db/mockdb.go:66
↓ 1 callers
Function
Suppress
Suppress returns a maximum amount of issues, if any are suppressed the total number suppressed is also returned.
internal/analyser/reporter.go:21
↓ 1 callers
Method
Value
Value implements the driver.Valuer interface.
internal/db/db.go:116
↓ 1 callers
Method
WriteExecution
WriteExecution writes the results of an execution to the database.
internal/db/sqldb.go:256
↓ 1 callers
Method
delete
delete deletes the topic and subcriptions, used to cleanup unit tests.
internal/queue/gcp-pubsub.go:190
↓ 1 callers
Method
mktemp
(base, goSrcPath string)
internal/analyser/filesystem.go:63
↓ 1 callers
Method
newInstallationTransport
(installationID int)
internal/github/github.go:51
↓ 1 callers
Method
queue
queue adds a message to the queue.
internal/queue/gcp-pubsub.go:126
↓ 1 callers
Method
receive
receive calls sub.Receive, which blocks forever waiting for new jobs.
internal/queue/gcp-pubsub.go:161
↓ 1 callers
Method
receive
receive polls the queue for new jobs and sends them on the pop channel.
internal/queue/memory.go:57
↓ 1 callers
Method
startGopherCI
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
Method
AddGHInstallation
AddGHInstallation implements the DB interface.
internal/db/sqldb.go:55
Method
AnalysisHandler
AnalysisHandler displays a single analysis.
internal/web/web.go:66
Method
AnalysisOutputs
AnalysisOutputs implements the DB interface.
internal/db/sqldb.go:240
Method
AnalysisOutputs
AnalysisOutputs implements the DB interface.
internal/db/mockdb.go:86
Method
Clone
(context.Context, Executer)
internal/analyser/analyser_test.go:34
Method
Debug
Debug implements the Logger interface.
internal/logger/logger.go:91
Method
Debugf
Debugf implements the Logger interface.
internal/logger/logger.go:96
Method
Error
Error implements the error interface.
internal/analyser/analyser.go:57
Method
Error
Error implements the Logger interface.
internal/logger/logger.go:111
Method
Error
Error implements the error interface.
internal/github/handlers.go:156
Method
Errorf
Errorf implements the Logger interface.
internal/logger/logger.go:116
Method
ExecRecorder
ExecRecorder implements the DB interface.
internal/db/sqldb.go:247
Method
ExecRecorder
ExecRecorder implements the DB interface.
internal/db/mockdb.go:91
Method
Execute
Execute implements the Executer interface
internal/analyser/filesystem.go:75
Method
Execute
(_ context.Context, args []string)
internal/analyser/analyser_test.go:21
Method
Execute
(_ context.Context, args []string)
internal/github/handlers_test.go:61
Method
Execute
Execute implements the Execute interface by running the wrapped executer and storing the results in an SQL database.
internal/db/sqldb.go:308
Method
Fatal
Fatal implements the Logger interface.
internal/logger/logger.go:121
Method
Fatalf
Fatalf implements the Logger interface.
internal/logger/logger.go:126
Method
FinishAnalysis
FinishAnalysis implements the DB interface.
internal/db/sqldb.go:133
Method
FinishAnalysis
FinishAnalysis implements the DB interface.
internal/db/mockdb.go:76
Method
GetAnalysis
GetAnalysis implements the DB interface.
internal/db/sqldb.go:170
Method
GetAnalysis
GetAnalysis implements the DB interface.
internal/db/mockdb.go:81
Method
GetGHInstallation
GetGHInstallation implements the DB interface.
internal/db/sqldb.go:70
Function
HealthCheckHandler
HealthCheckHandler checks whether the instance is shutting down, and if so, responds with 503 Service Unavailable.
health-check.go:42
Method
Info
Info implements the Logger interface.
internal/logger/logger.go:101
Method
Infof
Infof implements the Logger interface.
internal/logger/logger.go:106
Method
IsEnabled
IsEnabled returns true if the installation is enabled.
internal/db/db.go:81
Method
ListTools
ListTools implements the DB interface.
internal/db/sqldb.go:98
Method
ListTools
ListTools implements DB interface
internal/db/mockdb.go:61
Method
NewExecuter
(_ context.Context, goSrcPath string)
internal/github/handlers_test.go:57
Function
NewSQLDB
NewSQLDB returns an SQLDB.
internal/db/sqldb.go:26
Function
NewWeb
NewWeb returns a new Web instance, or an error.
internal/web/web.go:24
Method
Process
queueListen listens for jobs on the queue and executes the relevant handlers.
main.go:236
Method
Read
(context.Context, Executer)
internal/analyser/analyser_test.go:44
Method
RemoveGHInstallation
RemoveGHInstallation implements the DB interface.
internal/db/sqldb.go:64
Method
Report
Report implements the analyser.Reporter interface.
internal/github/reporters.go:165
Method
StartAnalysis
StartAnalysis implements the DB interface.
internal/db/sqldb.go:105
Method
Stop
Stop implements the Executer interface
internal/analyser/filesystem.go:93
Method
Stop
(_ context.Context)
internal/analyser/analyser_test.go:28
Method
Stop
(_ context.Context)
internal/github/handlers_test.go:79
Method
Stop
Stop implements the Execute interface.
internal/db/sqldb.go:323
Function
TestAPTPackagesCGO
TestAPTPackagesCGO tests that cgo dependencies are installed via apt-get.
integration_test.go:516
Function
TestAnalyse
(t *testing.T)
internal/analyser/analyser_test.go:48
Function
TestAnalyse
(t *testing.T)
internal/github/handlers_test.go:666
Function
TestAnalyse_disabled
(t *testing.T)
internal/github/handlers_test.go:763
Function
TestAnalysisFiles
(t *testing.T)
internal/web/vcsviewer_test.go:12
Function
TestAnalysisStatus_scan
(t *testing.T)
internal/db/db_test.go:10
Function
TestAnalysisView
TestAnalysisView tests the HTML generated when viewing an analysis.
integration_test.go:435
Function
TestAnalysis_htmlurl
(t *testing.T)
internal/db/db_test.go:94
Function
TestAnalysis_isPush
(t *testing.T)
internal/db/db_test.go:103
Function
TestAnalysis_issues
(t *testing.T)
internal/db/db_test.go:79
Function
TestCallbackHandler
(t *testing.T)
internal/github/handlers_test.go:101
Function
TestCheckPRAccessible
(t *testing.T)
internal/github/handlers_test.go:450
Function
TestCheckPRAction
(t *testing.T)
internal/github/handlers_test.go:364
Function
TestCheckPRAffectsGo
(t *testing.T)
internal/github/handlers_test.go:407
Function
TestCheckPushAffectsGo
(t *testing.T)
internal/github/handlers_test.go:384
Function
TestCommitCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:196
Function
TestDedupePRIssues
(t *testing.T)
internal/github/reporters_test.go:20
Function
TestDocker
(t *testing.T)
internal/analyser/docker_test.go:12
Function
TestDuration_scan
(t *testing.T)
internal/db/db_test.go:36
Function
TestDuration_string
(t *testing.T)
internal/db/db_test.go:71
Function
TestDuration_value
(t *testing.T)
internal/db/db_test.go:60
Function
TestFileSystem
(t *testing.T)
internal/analyser/filesystem_test.go:19
Function
TestFixedRef
(t *testing.T)
internal/analyser/refReader_test.go:53
Function
TestGCPPubSubQueue
(t *testing.T)
internal/queue/gcp-pubsub_test.go:19
Function
TestGCPPubSubQueue_timeout
(t *testing.T)
internal/queue/gcp-pubsub_test.go:72
Function
TestGetPatch
(t *testing.T)
internal/analyser/analyser_test.go:152
Function
TestGetPatch_diffError
(t *testing.T)
internal/analyser/analyser_test.go:182
Function
TestGitHubComments_ignoreGenerated
(t *testing.T)
integration_test.go:352
Function
TestGitHubComments_none
(t *testing.T)
integration_test.go:388
Function
TestGitHubComments_pr
(t *testing.T)
integration_test.go:274
Function
TestGitHubComments_pushMultiple
TestGitHubComments_pushMultiple tests pushing multiple commits which should create a single summary commit comment.
integration_test.go:178
Function
TestGitHubComments_pushSingle
TestGitHubComments_pushSingle tests pushing a single commit which should create an inline commit comment.
integration_test.go:227
Function
TestInlineCommitCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:272
Function
TestInstallAPTPackages
(t *testing.T)
internal/analyser/analyser_test.go:215
Function
TestInstallation_diff
(t *testing.T)
internal/github/installation_test.go:27
Function
TestInstallation_isEnabled
(t *testing.T)
internal/github/installation_test.go:16
Function
TestIntegrationInstallationEvent
(t *testing.T)
internal/github/handlers_test.go:495
Function
TestLogger
(t *testing.T)
internal/logger/logger_test.go:9
Function
TestMemoryQueue
(t *testing.T)
internal/queue/memory_test.go:12
Function
TestMergeBase
(t *testing.T)
internal/analyser/refReader_test.go:10
Function
TestMissingBeforeRef
TestMissingBeforeBranch tests the case where the before ref does not exist, such as branch tracking different tree.
integration_test.go:503
Function
TestMockDB
(t *testing.T)
internal/db/mockdb_test.go:8
Function
TestNewFileSystem_notExist
(t *testing.T)
internal/analyser/filesystem_test.go:10
Function
TestPRCommentReporter_report
(t *testing.T)
internal/github/reporters_test.go:81
← previous
next →
101–200 of 222, ranked by callers