~samwhited/xmpp

ref: 8a516e9e064619dcb3d84499b66e1562546be918 xmpp/sasl_test.go -rw-r--r-- 3.4 KiB
xmpp: move SASL tests to xmpp_test package

I prefer to keep tests in a separate package from the main code where
possible to ensure that the public API is what ends up being tested.
This makes it less likely that tests only test small internal pieces and
not the behavior of the package as a whole.

Signed-off-by: Sam Whited <sam@samwhited.com>
xmpp, xmpp/sasl2: improve test error handling

Also fixes several ineffectual assignments in test files.
all: update copyright message

[ci skip]
all: rewrap copyright comments/use xml.TokenReader
all: remove credentials from config

See #38
internal/ns: move ns package to internal/ns
xmpp: cleanup odd buffer indirection in tests
Fix tests broken by change in encoder flushing
Change stream features list API to use xml encoder

Fixes #11
Update SASL to use new mellium.im/sasl API

Add credentials to config (probably temporarily)
Fix broken SASL ScramSha256 call in tests
ns: Move namespaces to own package

This lets us prevent import loops (eg. if we want to access namespace
constants from a sibling tree under xmpp/)
Add SASL feature parsing and test
Add test for listing SASL mechanisms
Test that SASL() with no mechanisms panics
Next