welltested 0.1.3 copy "welltested: ^0.1.3" to clipboard
welltested: ^0.1.3 copied to clipboard

WelltestedAI is a Testing AI Pilot helping developers add and maintain tests as they code and deliver stable welltested apps to users.

example/lib/main.dart

import 'package:welltested/welltested.dart';

@Welltested(excludedMethods: ['logoutUser'])
class Auth {
  String? randomStringVariable;
  int? randomIntVariable;
  double? randomDoubleVariable;

  Future<User> loginWithEmailAndPassword(
      {required String email, required String password}) async {
    User user = User("unknown");
    final currentUserId = user.uid;
    if (currentUserId != "unknown") {
      return User("user already logged in");
    }
    if (email.isEmpty || password.isEmpty) {
      throw Exception("Email or Password can't be empty");
    }
    if (email == "test@test.com" && password == "password") {
      user = User("user logged in app");
    }
    return user;
  }

  Future<void> logoutUser() async {
    //Add Logout Functionality
  }
}

class User {
  final String uid;
  User(this.uid);
}
25
likes
0
pub points
69%
popularity

Publisher

verified publisherwelltested.ai

WelltestedAI is a Testing AI Pilot helping developers add and maintain tests as they code and deliver stable welltested apps to users.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analysis_server_lib, analyzer, analyzer_plugin, build, build_runner, build_runner_core, dotenv, http, mockito, path, retry, source_gen

More

Packages that depend on welltested