Initial Navis client with NaiveProxy, profiles, ping and git updates

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-28 06:55:19 +03:00
co-authored by Cursor
commit 595bc3d70d
40 changed files with 3412 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package naive
import "testing"
func TestNormalizeProxyURI(t *testing.T) {
in := "naive+https://user:pass@de50.example.com:443#site_u1_s454"
got, err := NormalizeProxyURI(in)
if err != nil {
t.Fatal(err)
}
want := "https://user:pass@de50.example.com:443"
if got != want {
t.Fatalf("got %q want %q", got, want)
}
got, err = NormalizeProxyURI("quic://user:pass@host")
if err != nil {
t.Fatal(err)
}
if got != "quic://user:pass@host" {
t.Fatalf("got %q", got)
}
}