chore: rename package + dir + repo to fai_client_sdk
Some checks failed
Security / Security check (push) Failing after 1s
Some checks failed
Security / Security check (push) Failing after 1s
Adopts the three SDK families convention from fai/platform/docs/architecture/sdks.md — base name carries the family, language suffix on dir + repo only: fai_dart_sdk (pkg) → fai_client_sdk fai_dart_sdk (dir) → fai_client_sdk_dart fai/dart-sdk (repo) → fai/client-sdk-dart Internal lib/test/example file renames track the package name. Old git.flemming.ws URL also retired here. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
f481eee687
commit
f882b7f955
5 changed files with 24 additions and 15 deletions
|
|
@ -1,31 +0,0 @@
|
|||
import 'package:fai_dart_sdk/fai_dart_sdk.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
group('HubEndpoint', () {
|
||||
test('default endpoint targets local fai serve', () {
|
||||
const e = HubEndpoint();
|
||||
expect(e.host, '127.0.0.1');
|
||||
expect(e.port, 50051);
|
||||
expect(e.secure, false);
|
||||
expect(e.toString(), 'http://127.0.0.1:50051');
|
||||
});
|
||||
|
||||
test('secure flag flips scheme', () {
|
||||
const e = HubEndpoint(host: 'hub.example', port: 443, secure: true);
|
||||
expect(e.toString(), 'https://hub.example:443');
|
||||
});
|
||||
});
|
||||
|
||||
group('HubClient', () {
|
||||
test('constructs with default endpoint', () {
|
||||
final c = HubClient();
|
||||
expect(c.endpoint.host, '127.0.0.1');
|
||||
});
|
||||
|
||||
test('close shuts the channel cleanly', () async {
|
||||
final c = HubClient();
|
||||
await c.close();
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue