Skip to content

Commit

Permalink
Updated docs/converage.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpfeifer committed Jul 10, 2024
1 parent 5652e83 commit 2fa224d
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 70 deletions.
23 changes: 12 additions & 11 deletions docs/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ github.com/janpfeifer/gonb/main.go SetUpKlog 66.7%
github.com/janpfeifer/gonb/cache/cache.go New 75.0%
github.com/janpfeifer/gonb/cache/cache.go AssertNoError 50.0%
github.com/janpfeifer/gonb/cache/cache.go MustNew 100.0%
github.com/janpfeifer/gonb/cache/cache.go NewInTmp 72.7%
github.com/janpfeifer/gonb/cache/cache.go NewInTmp 68.2%
github.com/janpfeifer/gonb/cache/cache.go MustNewInTmp 100.0%
github.com/janpfeifer/gonb/cache/cache.go NewHidden 80.0%
github.com/janpfeifer/gonb/cache/cache.go MustNewHidden 100.0%
Expand All @@ -28,7 +28,7 @@ github.com/janpfeifer/gonb/cache/cache.go CacheWith 91.7%
github.com/janpfeifer/gonb/cache/cache.go Cache 0.0%
github.com/janpfeifer/gonb/cmd/nbexec/nbexec.go main 72.2%
github.com/janpfeifer/gonb/cmd/nbexec/nbexec.go startJupyterNotebook 73.2%
github.com/janpfeifer/gonb/cmd/nbexec/nbexec.go executeNotebook 81.8%
github.com/janpfeifer/gonb/cmd/nbexec/nbexec.go executeNotebook 78.6%
github.com/janpfeifer/gonb/cmd/nbexec/nbexec.go checkForInputBoxes 95.7%
github.com/janpfeifer/gonb/common/common.go Panicf 0.0%
github.com/janpfeifer/gonb/common/common.go Pause 0.0%
Expand Down Expand Up @@ -165,9 +165,9 @@ github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.ProgramUnsubscr
github.com/janpfeifer/gonb/internal/comms/namedpipes.go *State.deliverProgramSubscriptionsLocked 62.5%
github.com/janpfeifer/gonb/internal/dispatcher/comms.go handleComms 55.6%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go RunKernel 80.0%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShellMsg 71.0%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShellMsg 78.4%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleBusyMessage 47.8%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShutdownRequest 83.3%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShutdownRequest 84.6%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleExecuteRequest 87.5%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go HandleInspectRequest 0.0%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleCompleteRequest 0.0%
Expand All @@ -185,7 +185,7 @@ github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderFun
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderTypes 100.0%
github.com/janpfeifer/gonb/internal/goexec/composer.go *Declarations.RenderConstants 100.0%
github.com/janpfeifer/gonb/internal/goexec/composer.go *Constant.Render 100.0%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createGoFileFromLines 85.7%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createGoFileFromLines 81.8%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createCodeFileFromDecls 58.8%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createAlternativeFileFromDecls 0.0%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createCodeFromDecls 71.9%
Expand Down Expand Up @@ -258,6 +258,7 @@ github.com/janpfeifer/gonb/internal/goexec/parser.go *State.readMainGo 77.8
github.com/janpfeifer/gonb/internal/goexec/parser.go *State.SetCellTests 100.0%
github.com/janpfeifer/gonb/internal/goexec/parser.go *State.DefaultCellTestArgs 100.0%
github.com/janpfeifer/gonb/internal/goexec/parser.go IsEmptyLines 77.8%
github.com/janpfeifer/gonb/internal/goexec/parser.go TrimGonbCommentPrefix 100.0%
github.com/janpfeifer/gonb/internal/goexec/tracking.go newTrackingInfo 100.0%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.Track 100.0%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.lockedTrack 54.8%
Expand Down Expand Up @@ -344,10 +345,10 @@ github.com/janpfeifer/gonb/internal/kernel/kernel.go *SyncSocket.RunLocked
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.IsStopped 66.7%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.StoppedChan 100.0%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.Stop 72.2%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.HandleInterrupt 88.2%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.HandleInterrupt 58.8%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.SubscribeInterrupt 80.0%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.UnsubscribeInterrupt 75.0%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.callInterruptSubscribers 42.9%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.CallInterruptSubscribers 42.9%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.ExitWait 100.0%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.Stdin 100.0%
github.com/janpfeifer/gonb/internal/kernel/kernel.go *Kernel.Shell 100.0%
Expand Down Expand Up @@ -395,7 +396,7 @@ github.com/janpfeifer/gonb/internal/nbtests/nbtests.go Sequence 63.2%
github.com/janpfeifer/gonb/internal/nbtests/nbtests.go OutputLine 100.0%
github.com/janpfeifer/gonb/internal/nbtests/nbtests.go InputLine 100.0%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go IsGoCell 0.0%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go ExecuteSpecialCell 80.0%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go ExecuteSpecialCell 81.0%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go cellCmdWritefile 87.5%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go writeLinesToFile 85.7%
github.com/janpfeifer/gonb/internal/specialcmd/cellmagic.go cellCmdScript 50.0%
Expand All @@ -404,9 +405,9 @@ github.com/janpfeifer/gonb/internal/specialcmd/definitions.go displayEnumeratio
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go listDefinitions 100.0%
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go removeDefinitionImpl 87.5%
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go removeDefinitions 75.0%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go Parse 84.0%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go joinLine 85.7%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execSpecialConfig 54.4%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go Parse 84.6%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go joinLine 87.5%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execSpecialConfig 55.3%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execShell 100.0%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go splitCmd 97.0%
github.com/janpfeifer/gonb/internal/specialcmd/track.go execTrack 27.3%
Expand Down
6 changes: 3 additions & 3 deletions examples/tests/bash_script.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/tmp/gonb_9dda40ab\n"
"/tmp/gonb_af538290\n"
]
}
],
Expand All @@ -59,7 +59,7 @@
"output_type": "stream",
"text": [
"/home/janpf/Projects/gonb/examples/tests\n",
"/tmp/gonb_9dda40ab\n",
"/tmp/gonb_af538290\n",
"/home/janpf/Projects/gonb\n",
"/home/janpf/Projects/gonb\n"
]
Expand All @@ -86,7 +86,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.1"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
11 changes: 2 additions & 9 deletions examples/tests/comms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"timedout\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"exit status 1\n"
"ok\n"
]
}
],
Expand Down Expand Up @@ -315,7 +308,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/tests/dom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
{
"data": {
"text/html": [
"<div id=\"dom.transient_div_959f503e\"></div>"
"<div id=\"dom.transient_div_88e9bcad\"></div>"
]
},
"metadata": {},
Expand Down Expand Up @@ -152,7 +152,7 @@
{
"data": {
"text/html": [
"<div id=\"dom.transient_div_129dd5d6\"></div>"
"<div id=\"dom.transient_div_33dbca98\"></div>"
]
},
"metadata": {},
Expand Down Expand Up @@ -197,7 +197,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/tests/functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "7ede954c-aac6-4191-a727-374eba56473e",
"metadata": {},
"outputs": [],
Expand All @@ -32,7 +32,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "e7f9e2a0-dbc3-42e0-b980-f8d6e9955b72",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -65,7 +65,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions examples/tests/goflags.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"gonb_bc1385f7/main.go:8:\tA\t\t100.0%\n",
"gonb_bc1385f7/main.go:12:\tB\t\t0.0%\n",
"gonb_bc1385f7/main.go:17:\tmain\t\t100.0%\n",
"gonb_17c43c9d/main.go:8:\tA\t\t100.0%\n",
"gonb_17c43c9d/main.go:12:\tB\t\t0.0%\n",
"gonb_17c43c9d/main.go:17:\tmain\t\t100.0%\n",
"total\t\t\t\t(statements)\t75.0%\n"
]
}
Expand Down Expand Up @@ -238,14 +238,14 @@
"name": "stderr",
"output_type": "stream",
"text": [
"# gonb_bc1385f7\n",
"# gonb_17c43c9d\n",
"./main.go:10:6: can inline (*Point).ManhattanLen\n",
"./main.go:16:12: inlining call to flag.Parse\n",
"./main.go:18:28: inlining call to (*Point).ManhattanLen\n",
"./main.go:18:13: inlining call to fmt.Println\n",
"./main.go:18:27: inlining call to (*Point).ManhattanLen\n",
"./main.go:18:12: inlining call to fmt.Println\n",
"./main.go:10:7: p does not escape\n",
"./main.go:18:13: ... argument does not escape\n",
"./main.go:18:28: ~r0 escapes to heap\n"
"./main.go:18:12: ... argument does not escape\n",
"./main.go:18:27: ~r0 escapes to heap\n"
]
}
],
Expand All @@ -267,7 +267,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.0"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions examples/tests/gonbui.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"output_type": "stream",
"text": [
"%goflags=[\"--cover\" \"--covermode=set\"]\n",
"GOCOVERDIR=/tmp/gonb_test_coverage.4mPvyGK2OJ\n"
"GOCOVERDIR=/tmp/gonb_test_coverage.9v84ceUYUN\n"
]
}
],
Expand Down Expand Up @@ -133,7 +133,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.0"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions examples/tests/gotest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@
"text": [
"goos: linux\n",
"goarch: amd64\n",
"pkg: gonb_36f3efc5\n",
"cpu: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz\n",
"pkg: gonb_ce57b149\n",
"cpu: 12th Gen Intel(R) Core(TM) i9-12900K\n",
"BenchmarkFibonacciA32\n",
"BenchmarkFibonacciA32-8 \t 50\t 22759741 ns/op\n",
"BenchmarkFibonacciA32-24 \t 177\t 6414568 ns/op\n",
"BenchmarkFibonacciB32\n",
"BenchmarkFibonacciB32-8 \t28774705\t 39.85 ns/op\n",
"BenchmarkFibonacciB32-24 \t107397702\t 12.40 ns/op\n",
"PASS\n",
"coverage: [no statements]\n"
]
Expand Down Expand Up @@ -334,10 +334,10 @@
"text": [
"goos: linux\n",
"goarch: amd64\n",
"pkg: gonb_36f3efc5\n",
"cpu: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz\n",
"BenchmarkFibonacciA32-8 \t 52\t 22831751 ns/op\n",
"BenchmarkFibonacciB32-8 \t31159093\t 40.49 ns/op\n",
"pkg: gonb_ce57b149\n",
"cpu: 12th Gen Intel(R) Core(TM) i9-12900K\n",
"BenchmarkFibonacciA32-24 \t 174\t 6429990 ns/op\n",
"BenchmarkFibonacciB32-24 \t100000000\t 11.82 ns/op\n",
"PASS\n",
"coverage: [no statements]\n"
]
Expand All @@ -361,7 +361,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions examples/tests/gowork.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/tmp/gonb_tests_gowork_7nbFxBzY"
"/tmp/gonb_tests_gowork_FGEWmVkv"
]
}
],
Expand Down Expand Up @@ -64,7 +64,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Temporary test package: /tmp/gonb_tests_gowork_7nbFxBzY\n"
"Temporary test package: /tmp/gonb_tests_gowork_FGEWmVkv\n"
]
}
],
Expand Down Expand Up @@ -136,7 +136,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\t- Added replace rule for module \"a.com/a/pkg\" to local directory \"/tmp/gonb_tests_gowork_7nbFxBzY\".\n"
"\t- Added replace rule for module \"a.com/a/pkg\" to local directory \"/tmp/gonb_tests_gowork_FGEWmVkv\".\n"
]
}
],
Expand All @@ -155,9 +155,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"module gonb_70aea21c\n",
"module gonb_26040e0f\n",
"\n",
"go 1.22.3\n",
"go 1.22.4\n",
"\n",
"replace a.com/a/pkg => TMP_PKG\n"
]
Expand Down Expand Up @@ -186,7 +186,7 @@
"text/html": [
"<b>List of files/directories being tracked:</b>\n",
"<ul>\n",
"<li>/tmp/gonb_tests_gowork_7nbFxBzY</li>\n",
"<li>/tmp/gonb_tests_gowork_FGEWmVkv</li>\n",
"</ul>\n"
]
},
Expand All @@ -208,9 +208,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"module gonb_70aea21c\n",
"module gonb_26040e0f\n",
"\n",
"go 1.22.3\n"
"go 1.22.4\n"
]
}
],
Expand Down Expand Up @@ -280,7 +280,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/tests/hello.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/tests/init.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions examples/tests/input_boxes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"output_type": "stream",
"text": [
"%goflags=[\"--cover\" \"--covermode=set\"]\n",
"GOCOVERDIR=/tmp/gonb_nbtests_gocoverdir_2732346201\n"
"GOCOVERDIR=/tmp/gonb_test_coverage.9v84ceUYUN\n"
]
}
],
Expand Down Expand Up @@ -196,7 +196,7 @@
"name": "go",
"nbconvert_exporter": "",
"pygments_lexer": "",
"version": "go1.22.3"
"version": "go1.22.4"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2fa224d

Please sign in to comment.