(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestUpdateNoChange(t *testing.T) { |
| 95 | wb := SetupWorkbench(t) |
| 96 | defer wb.Close() |
| 97 | |
| 98 | shellPid := strconv.Itoa(wb.LaunchFakeShell()) |
| 99 | |
| 100 | wb.RunCodCmd("init", shellPid, "bash") |
| 101 | |
| 102 | wb.RunCodCmd("learn", "--", "binaries/cat.py", "--help") |
| 103 | out := wb.RunCodCmd("list") |
| 104 | parsed := wb.ParseCodListMap(out) |
| 105 | require.Equal(t, len(parsed), 1) |
| 106 | |
| 107 | wb.RunCodCmd("update", "**") |
| 108 | |
| 109 | out = wb.RunCodCmd("list") |
| 110 | parsed = wb.ParseCodListMap(out) |
| 111 | require.Equal(t, len(parsed), 1) |
| 112 | } |
| 113 | |
| 114 | func TestUpdateBroken(t *testing.T) { |
| 115 | wb := SetupWorkbench(t) |
nothing calls this directly
no test coverage detected