Class: Fbe::Graph::Fake
- Inherits:
-
Object
- Object
- Fbe::Graph::Fake
- Defined in:
- lib/fbe/github_graph.rb
Overview
Fake GitHub GraphQL client, for tests.
Instance Method Summary collapse
- #query(_query) ⇒ Object
- #resolved_conversations(owner, name, _number) ⇒ Object
- #total_commits(_owner, _name, _branch) ⇒ Object
- #total_issues_and_pulls(_owner, _name) ⇒ Object
Instance Method Details
#query(_query) ⇒ Object
195 196 197 |
# File 'lib/fbe/github_graph.rb', line 195 def query(_query) {} end |
#resolved_conversations(owner, name, _number) ⇒ Object
199 200 201 202 203 204 205 206 |
# File 'lib/fbe/github_graph.rb', line 199 def resolved_conversations(owner, name, _number) data = { zerocracy_baza: [ conversation('PRRT_kwDOK2_4A85BHZAR') ] } data[:"#{owner}_#{name}"] || [] end |
#total_commits(_owner, _name, _branch) ⇒ Object
215 216 217 |
# File 'lib/fbe/github_graph.rb', line 215 def total_commits(_owner, _name, _branch) 1484 end |
#total_issues_and_pulls(_owner, _name) ⇒ Object
208 209 210 211 212 213 |
# File 'lib/fbe/github_graph.rb', line 208 def total_issues_and_pulls(_owner, _name) { 'issues' => 23, 'pulls' => 19 } end |