TestHamrpassNoArgsShowsSetWhenKeyPresent: status line flips to `set` when the hamrpass profile already has a key.
(t *testing.T)
| 2938 | // Bootstrap seeds hamrpass with an empty key; assert the precondition |
| 2939 | // so the test fails loud if Default() ever changes. |
| 2940 | if hp, ok := m.cfg.Models["hamrpass"]; !ok || hp.Key != "" { |
| 2941 | t.Fatalf("precondition: hamrpass profile with empty key, got %+v", hp) |
| 2942 | } |
| 2943 | m2, _ := m.runSlash("/hamrpass") |
| 2944 | final := m2.(Model) |
| 2945 | out := stripANSI(final.scroll.String()) |
| 2946 | for _, want := range []string{ |
| 2947 | "hamrpass", |
| 2948 | "status : unset", |
| 2949 | "endpoint : https://codehamr.com", |
| 2950 | "llm : hamrpass", |
| 2951 | "https://codehamr.com", |
| 2952 | "/hamrpass <your key>", |
| 2953 | } { |
| 2954 | if !strings.Contains(out, want) { |
nothing calls this directly
no test coverage detected