Skip to content

Commit

Permalink
Fixed test; Updated coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpfeifer committed Apr 5, 2024
1 parent b548cca commit de9f384
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
39 changes: 26 additions & 13 deletions docs/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ 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%
github.com/janpfeifer/gonb/common/common.go UniqueId 100.0%
github.com/janpfeifer/gonb/common/common.go MakeSet 66.7%
github.com/janpfeifer/gonb/common/common.go MakeSet 100.0%
github.com/janpfeifer/gonb/common/common.go SetWithValues 83.3%
github.com/janpfeifer/gonb/common/common.go Has 100.0%
github.com/janpfeifer/gonb/common/common.go Insert 100.0%
github.com/janpfeifer/gonb/common/common.go Delete 100.0%
github.com/janpfeifer/gonb/common/common.go Keys 100.0%
github.com/janpfeifer/gonb/common/common.go SortedKeys 100.0%
github.com/janpfeifer/gonb/common/common.go WalkDirWithSymbolicLinks 100.0%
github.com/janpfeifer/gonb/common/common.go walkDirWithSymbolicLinksImpl 42.1%
github.com/janpfeifer/gonb/common/common.go WalkDirWithSymbolicLinks 100.0%
github.com/janpfeifer/gonb/common/common.go walkDirWithSymbolicLinksImpl 42.1%
github.com/janpfeifer/gonb/common/common.go ReplaceTildeInDir 11.8%
github.com/janpfeifer/gonb/common/common.go ReplaceEnvVars 100.0%
github.com/janpfeifer/gonb/common/common.go NewLatch 100.0%
github.com/janpfeifer/gonb/common/common.go *Latch.Trigger 100.0%
github.com/janpfeifer/gonb/common/common.go *Latch.Wait 100.0%
Expand Down Expand Up @@ -81,7 +83,6 @@ github.com/janpfeifer/gonb/gonbui/gonbui.go DisplaySVG 0.0%
github.com/janpfeifer/gonb/gonbui/gonbui.go RequestInput 75.0%
github.com/janpfeifer/gonb/gonbui/gonbui.go EmbedImageAsPNGSrc 0.0%
github.com/janpfeifer/gonb/gonbui/javascript.go ScriptJavascript 0.0%
github.com/janpfeifer/gonb/gonbui/javascript.go LoadScriptModuleAndRun 0.0%
github.com/janpfeifer/gonb/gonbui/comms/comms.go init 100.0%
github.com/janpfeifer/gonb/gonbui/comms/comms.go Start 0.0%
github.com/janpfeifer/gonb/gonbui/comms/comms.go Send 100.0%
Expand All @@ -106,6 +107,10 @@ github.com/janpfeifer/gonb/gonbui/dom/dom.go SetInnerText 100.0%
github.com/janpfeifer/gonb/gonbui/dom/dom.go GetInnerHtml 83.3%
github.com/janpfeifer/gonb/gonbui/dom/dom.go Remove 100.0%
github.com/janpfeifer/gonb/gonbui/dom/dom.go Persist 66.7%
github.com/janpfeifer/gonb/gonbui/dom/script.go LoadScriptModuleAndRun 0.0%
github.com/janpfeifer/gonb/gonbui/dom/script.go LoadScriptOrRequireJSModuleAndRun 0.0%
github.com/janpfeifer/gonb/gonbui/dom/script.go LoadScriptOrRequireJSModuleAndRunTransient 0.0%
github.com/janpfeifer/gonb/gonbui/dom/script.go loadScriptOrRequireJSModuleAndRunImpl 0.0%
github.com/janpfeifer/gonb/gonbui/protocol/protocol.go init 100.0%
github.com/janpfeifer/gonb/gonbui/widgets/button.go Button 100.0%
github.com/janpfeifer/gonb/gonbui/widgets/button.go *ButtonBuilder.WithHtmlId 75.0%
Expand Down Expand Up @@ -163,7 +168,7 @@ 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 handleBusyMessage 47.8%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleShutdownRequest 83.3%
github.com/janpfeifer/gonb/internal/dispatcher/dispatcher.go handleExecuteRequest 68.4%
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%
github.com/janpfeifer/gonb/internal/goexec/composer.go MakeFileToCellIdAndLine 100.0%
Expand All @@ -180,15 +185,15 @@ 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 86.3%
github.com/janpfeifer/gonb/internal/goexec/composer.go *State.createGoFileFromLines 85.7%
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%
github.com/janpfeifer/gonb/internal/goexec/cwd_linux.go CurrentWorkingDirectoryForPid 80.0%
github.com/janpfeifer/gonb/internal/goexec/elementtype_string.go ElementType.String 0.0%
github.com/janpfeifer/gonb/internal/goexec/errorpublish.go *State.DisplayErrorWithContext 100.0%
github.com/janpfeifer/gonb/internal/goexec/errorpublish.go *GonbError.PublishWithHTML 16.7%
github.com/janpfeifer/gonb/internal/goexec/errorpublish.go JupyterErrorSplit 75.0%
github.com/janpfeifer/gonb/internal/goexec/errorpublish.go JupyterErrorSplit 100.0%
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.ExecuteCell 100.0%
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.serializeExecuteCell 100.0%
github.com/janpfeifer/gonb/internal/goexec/execcode.go *State.executeCellImpl 68.0%
Expand Down Expand Up @@ -252,9 +257,10 @@ github.com/janpfeifer/gonb/internal/goexec/parser.go lineWithCursor 80.0%
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/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 69.4%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.lockedTrack 54.8%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.Untrack 85.7%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.lockedUntrackEntry 66.7%
github.com/janpfeifer/gonb/internal/goexec/tracking.go *State.ListTracked 80.0%
Expand Down Expand Up @@ -315,9 +321,11 @@ github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.WithStderr
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.WithStdout 0.0%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.WithInputs 100.0%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.WithPassword 100.0%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.Exec 76.5%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.WithStaticInput 100.0%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.Exec 77.4%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.done 92.3%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.handleJupyterInput 91.3%
github.com/janpfeifer/gonb/internal/jpyexec/jpyexec.go *Executor.handleStaticInput 71.4%
github.com/janpfeifer/gonb/internal/jpyexec/namedpipes.go init 100.0%
github.com/janpfeifer/gonb/internal/jpyexec/namedpipes.go *Executor.handleNamedPipes 81.8%
github.com/janpfeifer/gonb/internal/jpyexec/namedpipes.go *Executor.createTmpFifo 63.6%
Expand Down Expand Up @@ -360,7 +368,7 @@ github.com/janpfeifer/gonb/internal/kernel/messages.go *MessageImpl.CancelInpu
github.com/janpfeifer/gonb/internal/kernel/messages.go *MessageImpl.DeliverInput 75.0%
github.com/janpfeifer/gonb/internal/kernel/messages.go *MessageImpl.Reply 85.7%
github.com/janpfeifer/gonb/internal/kernel/messages.go EnsureMIMEMap 66.7%
github.com/janpfeifer/gonb/internal/kernel/messages.go PublishExecutionError 0.0%
github.com/janpfeifer/gonb/internal/kernel/messages.go PublishExecutionError 100.0%
github.com/janpfeifer/gonb/internal/kernel/messages.go PublishExecuteResult 0.0%
github.com/janpfeifer/gonb/internal/kernel/messages.go PublishDisplayData 66.7%
github.com/janpfeifer/gonb/internal/kernel/messages.go PublishData 66.7%
Expand All @@ -383,18 +391,23 @@ github.com/janpfeifer/gonb/internal/nbtests/nbtests.go Capture 0.0%
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 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%
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go resetDefinitions 75.0%
github.com/janpfeifer/gonb/internal/specialcmd/definitions.go displayEnumeration 90.9%
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 80.8%
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 execInternal 53.4%
github.com/janpfeifer/gonb/internal/specialcmd/specialcmd.go execSpecialConfig 54.4%
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%
github.com/janpfeifer/gonb/internal/specialcmd/track.go execUntrack 54.5%
github.com/janpfeifer/gonb/internal/specialcmd/track.go showTrackedList 91.7%
github.com/janpfeifer/gonb/internal/websocket/websocket.go Javascript 83.3%
total (statements) 64.2%
total (statements) 64.4%
6 changes: 3 additions & 3 deletions internal/goexec/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ func init() {
func main() {
flag.Parse()
fmt.Printf("Hello! %s\n", c)
fmt.Printf("1 + 3 = %d\n", sum(1, 3))
fmt.Printf("math.Pi - PI=%f\n", math.Pi - float64(PI32))
fmt.Printf("Hello! %s\n", c)
fmt.Printf("1 + 3 = %d\n", sum(1, 3))
fmt.Printf("math.Pi - PI=%f\n", math.Pi - float64(PI32))
}
Expand Down

0 comments on commit de9f384

Please sign in to comment.