Skip to content

Commit ad865bf

Browse files
committed
Updated coverage.
1 parent a6ecebf commit ad865bf

File tree

11 files changed

+41
-37
lines changed

11 files changed

+41
-37
lines changed

docs/coverage.txt

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ github.com/janpfeifer/gonb/main.go UniqueIDFilter.Filter 100.0%
66
github.com/janpfeifer/gonb/main.go UniqueIDFilter.FilterF 100.0%
77
github.com/janpfeifer/gonb/main.go UniqueIDFilter.FilterS 0.0%
88
github.com/janpfeifer/gonb/main.go SetUpKlog 66.7%
9+
github.com/janpfeifer/gonb/version.go must 50.0%
10+
github.com/janpfeifer/gonb/version.go init 100.0%
911
github.com/janpfeifer/gonb/cache/cache.go New 75.0%
1012
github.com/janpfeifer/gonb/cache/cache.go AssertNoError 50.0%
1113
github.com/janpfeifer/gonb/cache/cache.go MustNew 100.0%
12-
github.com/janpfeifer/gonb/cache/cache.go NewInTmp 68.2%
14+
github.com/janpfeifer/gonb/cache/cache.go NewInTmp 72.7%
1315
github.com/janpfeifer/gonb/cache/cache.go MustNewInTmp 100.0%
1416
github.com/janpfeifer/gonb/cache/cache.go NewHidden 80.0%
1517
github.com/janpfeifer/gonb/cache/cache.go MustNewHidden 100.0%
@@ -147,8 +149,8 @@ github.com/janpfeifer/gonb/internal/comms/comms.go New 100.0%
147149
github.com/janpfeifer/gonb/internal/comms/comms.go getFromJson 62.5%
148150
github.com/janpfeifer/gonb/internal/comms/comms.go *State.InstallWebSocket 100.0%
149151
github.com/janpfeifer/gonb/internal/comms/comms.go *State.installWebSocketLocked 79.5%
150-
github.com/janpfeifer/gonb/internal/comms/comms.go *State.HandleOpen 64.4%
151-
github.com/janpfeifer/gonb/internal/comms/comms.go *State.HandleMsg 63.6%
152+
github.com/janpfeifer/gonb/internal/comms/comms.go *State.HandleOpen 68.9%
153+
github.com/janpfeifer/gonb/internal/comms/comms.go *State.HandleMsg 69.7%
152154
github.com/janpfeifer/gonb/internal/comms/comms.go *State.Close 100.0%
153155
github.com/janpfeifer/gonb/internal/comms/comms.go *State.closeLocked 100.0%
154156
github.com/janpfeifer/gonb/internal/comms/comms.go *State.Send 100.0%
@@ -165,7 +167,7 @@ github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.ProgramReadValu
165167
github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.ProgramSubscribeRequest 54.5%
166168
github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.ProgramUnsubscribeRequest 57.1%
167169
github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.deliverProgramSubscriptionsLocked 62.5%
168-
github.com/janpfeifer/gonb/internal/dispatcher/comms.go handleComms 55.6%
170+
github.com/janpfeifer/gonb/internal/dispatcher/comms.go handleComms 66.7%
169171
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go RunKernel 80.0%
170172
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShellMsg 78.4%
171173
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleBusyMessage 47.8%
@@ -183,7 +185,8 @@ github.com/janpfeifer/gonb/internal/goexec/composer.go *WriterWithCursor.Write
183185
github.com/janpfeifer/gonb/internal/goexec/composer.go *WriterWithCursor.Write 76.9%
184186
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderImports 100.0%
185187
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderVariables 91.2%
186-
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderFunctions 100.0%
188+
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderFunctions 94.1%
189+
github.com/janpfeifer/gonb/internal/goexec/composer.go *Comments.Render 90.0%
187190
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderTypes 100.0%
188191
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderConstants 100.0%
189192
github.com/janpfeifer/gonb/internal/goexec/composer.go *Constant.Render 100.0%
@@ -202,7 +205,7 @@ github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.executeCellImpl
202205
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.PostExecuteCell 85.7%
203206
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.BinaryPath 100.0%
204207
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.CodePath 100.0%
205-
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.RemoveCode 83.3%
208+
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.RemoveGeneratedCode 83.3%
206209
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.AlternativeDefinitionsPath 0.0%
207210
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.Execute 85.7%
208211
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.Compile 70.0%
@@ -247,10 +250,11 @@ github.com/janpfeifer/gonb/internal/goexec/inspect.go adjustCursorForFunctionI
247250
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.getCursor 100.0%
248251
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.calculateCellLines 100.0%
249252
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.extractContentOfNode 83.3%
250-
github.com/janpfeifer/gonb/internal/goexec/parser.go *State.parseFromGoCode 79.1%
253+
github.com/janpfeifer/gonb/internal/goexec/parser.go *State.parseFromGoCode 77.3%
251254
github.com/janpfeifer/gonb/internal/goexec/parser.go NewImport 88.9%
252255
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseImportEntry 100.0%
253256
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseFuncEntry 100.0%
257+
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseComments 100.0%
254258
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseVarEntry 84.6%
255259
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseConstEntry 100.0%
256260
github.com/janpfeifer/gonb/internal/goexec/parser.go *parseInfo.ParseTypeEntry 100.0%
@@ -411,11 +415,11 @@ github.com/janpfeifer/gonb/internal/specialcmd/definitions.go removeDefinitionI
411415
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go removeDefinitions 91.7%
412416
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go Parse 84.6%
413417
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go joinLine 87.5%
414-
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execSpecialConfig 58.2%
418+
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execSpecialConfig 55.1%
415419
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execShell 100.0%
416420
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go splitCmd 97.0%
417421
github.com/janpfeifer/gonb/internal/specialcmd/track.go execTrack 27.3%
418422
github.com/janpfeifer/gonb/internal/specialcmd/track.go execUntrack 54.5%
419423
github.com/janpfeifer/gonb/internal/specialcmd/track.go showTrackedList 91.7%
420424
github.com/janpfeifer/gonb/internal/websocket/websocket.go Javascript 83.3%
421-
total (statements) 64.6%
425+
total (statements) 64.8%

examples/tests/bash_script.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"name": "stdout",
3535
"output_type": "stream",
3636
"text": [
37-
"/tmp/gonb_d300f5a2\n"
37+
"/tmp/gonb_8e54badc\n"
3838
]
3939
}
4040
],
@@ -59,7 +59,7 @@
5959
"output_type": "stream",
6060
"text": [
6161
"/home/janpf/Projects/gonb/examples/tests\n",
62-
"/tmp/gonb_d300f5a2\n",
62+
"/tmp/gonb_8e54badc\n",
6363
"/home/janpf/Projects/gonb\n",
6464
"/home/janpf/Projects/gonb\n"
6565
]

examples/tests/dom.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
{
8989
"data": {
9090
"text/html": [
91-
"<div id=\"dom.transient_div_25f4f259\"></div>"
91+
"<div id=\"dom.transient_div_77b0e411\"></div>"
9292
]
9393
},
9494
"metadata": {},
@@ -152,7 +152,7 @@
152152
{
153153
"data": {
154154
"text/html": [
155-
"<div id=\"dom.transient_div_759e5c9b\"></div>"
155+
"<div id=\"dom.transient_div_1889e174\"></div>"
156156
]
157157
},
158158
"metadata": {},

examples/tests/goflags.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@
153153
"name": "stdout",
154154
"output_type": "stream",
155155
"text": [
156-
"gonb_ae2bcb52/main.go:8:\tA\t\t100.0%\n",
157-
"gonb_ae2bcb52/main.go:12:\tB\t\t0.0%\n",
158-
"gonb_ae2bcb52/main.go:17:\tmain\t\t100.0%\n",
156+
"gonb_a636feef/main.go:8:\tA\t\t100.0%\n",
157+
"gonb_a636feef/main.go:12:\tB\t\t0.0%\n",
158+
"gonb_a636feef/main.go:17:\tmain\t\t100.0%\n",
159159
"total\t\t\t\t(statements)\t75.0%\n"
160160
]
161161
}
@@ -238,7 +238,7 @@
238238
"name": "stderr",
239239
"output_type": "stream",
240240
"text": [
241-
"# gonb_ae2bcb52\n",
241+
"# gonb_a636feef\n",
242242
"./main.go:10:6: can inline (*Point).ManhattanLen\n",
243243
"./main.go:16:12: inlining call to flag.Parse\n",
244244
"./main.go:18:27: inlining call to (*Point).ManhattanLen\n",

examples/tests/gonbui.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"output_type": "stream",
2323
"text": [
2424
"%goflags=[\"--cover\" \"--covermode=set\"]\n",
25-
"GOCOVERDIR=/tmp/gonb_nbtests_gocoverdir_4129479306\n"
25+
"GOCOVERDIR=/tmp/gonb_test_coverage.KXrPgksOg4\n"
2626
]
2727
}
2828
],

examples/tests/gotest.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@
287287
"text": [
288288
"goos: linux\n",
289289
"goarch: amd64\n",
290-
"pkg: gonb_74e427f6\n",
290+
"pkg: gonb_348f5fd7\n",
291291
"cpu: 12th Gen Intel(R) Core(TM) i9-12900K\n",
292292
"BenchmarkFibonacciA32\n",
293-
"BenchmarkFibonacciA32-24 \t 178\t 6602828 ns/op\n",
293+
"BenchmarkFibonacciA32-24 \t 181\t 6584232 ns/op\n",
294294
"BenchmarkFibonacciB32\n",
295-
"BenchmarkFibonacciB32-24 \t298555876\t 4.021 ns/op\n",
295+
"BenchmarkFibonacciB32-24 \t301803614\t 3.994 ns/op\n",
296296
"PASS\n",
297297
"coverage: [no statements]\n"
298298
]
@@ -334,10 +334,10 @@
334334
"text": [
335335
"goos: linux\n",
336336
"goarch: amd64\n",
337-
"pkg: gonb_74e427f6\n",
337+
"pkg: gonb_348f5fd7\n",
338338
"cpu: 12th Gen Intel(R) Core(TM) i9-12900K\n",
339-
"BenchmarkFibonacciA32-24 \t 180\t 6574007 ns/op\n",
340-
"BenchmarkFibonacciB32-24 \t308328156\t 3.930 ns/op\n",
339+
"BenchmarkFibonacciA32-24 \t 177\t 6570735 ns/op\n",
340+
"BenchmarkFibonacciB32-24 \t341224015\t 3.960 ns/op\n",
341341
"PASS\n",
342342
"coverage: [no statements]\n"
343343
]

examples/tests/gowork.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"name": "stdout",
3737
"output_type": "stream",
3838
"text": [
39-
"/tmp/gonb_tests_gowork_173uIYjd"
39+
"/tmp/gonb_tests_gowork_k5qMEYlN"
4040
]
4141
}
4242
],
@@ -64,7 +64,7 @@
6464
"name": "stdout",
6565
"output_type": "stream",
6666
"text": [
67-
"Temporary test package: /tmp/gonb_tests_gowork_173uIYjd\n"
67+
"Temporary test package: /tmp/gonb_tests_gowork_k5qMEYlN\n"
6868
]
6969
}
7070
],
@@ -136,7 +136,7 @@
136136
"name": "stdout",
137137
"output_type": "stream",
138138
"text": [
139-
"\t- Added replace rule for module \"a.com/a/pkg\" to local directory \"/tmp/gonb_tests_gowork_173uIYjd\".\n"
139+
"\t- Added replace rule for module \"a.com/a/pkg\" to local directory \"/tmp/gonb_tests_gowork_k5qMEYlN\".\n"
140140
]
141141
}
142142
],
@@ -155,7 +155,7 @@
155155
"name": "stdout",
156156
"output_type": "stream",
157157
"text": [
158-
"module gonb_b978d03f\n",
158+
"module gonb_c5afeb93\n",
159159
"\n",
160160
"go 1.23.5\n",
161161
"\n",
@@ -186,7 +186,7 @@
186186
"text/html": [
187187
"<b>List of files/directories being tracked:</b>\n",
188188
"<ul>\n",
189-
"<li>/tmp/gonb_tests_gowork_173uIYjd</li>\n",
189+
"<li>/tmp/gonb_tests_gowork_k5qMEYlN</li>\n",
190190
"</ul>\n"
191191
]
192192
},
@@ -208,7 +208,7 @@
208208
"name": "stdout",
209209
"output_type": "stream",
210210
"text": [
211-
"module gonb_b978d03f\n",
211+
"module gonb_c5afeb93\n",
212212
"\n",
213213
"go 1.23.5\n"
214214
]

examples/tests/input_boxes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"output_type": "stream",
2323
"text": [
2424
"%goflags=[\"--cover\" \"--covermode=set\"]\n",
25-
"GOCOVERDIR=/tmp/gonb_nbtests_gocoverdir_4129479306\n"
25+
"GOCOVERDIR=/tmp/gonb_test_coverage.KXrPgksOg4\n"
2626
]
2727
}
2828
],

examples/tests/vartuple.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"text/html": [
4646
"<h4>Variables</h4>\n",
4747
"<ul>\n",
48-
"<li><pre>_~085390</pre></li>\n",
48+
"<li><pre>_~840487</pre></li>\n",
4949
"<li><pre>a</pre></li>\n",
5050
"<li><pre>c</pre></li>\n",
5151
"</ul>"

examples/tests/widgets.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
{
9696
"data": {
9797
"text/html": [
98-
"<div id=\"dom.transient_div_540e2e0c\"></div>"
98+
"<div id=\"dom.transient_div_55acb47e\"></div>"
9999
]
100100
},
101101
"metadata": {},
@@ -189,7 +189,7 @@
189189
{
190190
"data": {
191191
"text/html": [
192-
"<div id=\"dom.transient_div_ddd43a51\"></div>"
192+
"<div id=\"dom.transient_div_28380cd2\"></div>"
193193
]
194194
},
195195
"metadata": {},
@@ -304,7 +304,7 @@
304304
{
305305
"data": {
306306
"text/html": [
307-
"<div id=\"dom.transient_div_a322648e\"></div>"
307+
"<div id=\"dom.transient_div_222cc2d0\"></div>"
308308
]
309309
},
310310
"metadata": {},

0 commit comments

Comments
 (0)