Skip to content

Commit

Permalink
feature: see ouputs/pick random (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDevApps authored Apr 14, 2024
1 parent 9a40d55 commit 64b5b3e
Show file tree
Hide file tree
Showing 68 changed files with 3,785 additions and 74 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: testing

on:
pull_request:
branches: [ "main", "dev" ]

jobs:
test-flutter:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.16.0
with:
channel: 'stable'

- name: Build generated classes
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Install dependencies
run: flutter pub get

- name: Analyze project source
run: flutter analyze

- name: Run tests
run: flutter test --coverage
3 changes: 3 additions & 0 deletions assets/data_test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
10;13;14;25;1;35;5
1;16;10;6;39;37;2
1;6;25;10;33;39;2
221 changes: 221 additions & 0 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
SF:lib\lottery.dart
DA:30,1
DA:33,1
DA:37,1
DA:44,1
DA:45,1
DA:46,1
DA:51,2
DA:53,2
DA:54,1
DA:55,6
DA:57,6
DA:59,2
DA:61,1
DA:63,1
DA:69,1
DA:71,2
DA:73,2
DA:74,2
DA:75,3
DA:78,2
DA:79,2
DA:80,3
DA:85,1
DA:86,2
DA:89,0
DA:90,0
DA:91,0
DA:92,0
DA:96,0
DA:98,0
DA:100,0
DA:101,0
DA:102,0
DA:103,0
DA:104,0
DA:109,1
DA:111,1
DA:112,2
DA:113,2
DA:114,1
DA:120,1
LF:41
LH:30
end_of_record
SF:lib\src\core\utils\csv_utils.dart
DA:4,1
DA:10,2
DA:12,1
DA:16,0
DA:19,0
DA:20,0
DA:21,0
LF:7
LH:3
end_of_record
SF:lib\src\models\grid_model\grid_model.dart
DA:13,0
DA:14,0
LF:2
LH:0
end_of_record
SF:lib\src\models\grid_model\grid_model.g.dart
DA:9,0
DA:10,0
DA:11,0
DA:12,0
DA:13,0
DA:14,0
DA:17,0
DA:18,0
DA:19,0
DA:20,0
LF:10
LH:0
end_of_record
SF:lib\src\view\screens\lottery_screen.dart
DA:13,0
DA:23,0
DA:25,0
DA:26,0
DA:27,0
DA:29,0
DA:31,0
DA:32,0
DA:34,0
DA:35,0
DA:36,0
DA:37,0
DA:38,0
DA:39,0
DA:42,0
DA:43,0
DA:44,0
DA:45,0
DA:46,0
DA:47,0
DA:59,0
DA:60,0
DA:61,0
DA:62,0
DA:63,0
DA:64,0
LF:26
LH:0
end_of_record
SF:lib\src\view\widgets\lottery_number_item.dart
DA:7,0
DA:17,0
DA:23,0
DA:25,0
DA:26,0
DA:28,0
DA:32,0
DA:34,0
DA:35,0
DA:36,0
DA:37,0
DA:39,0
LF:12
LH:0
end_of_record
SF:lib\src\view\widgets\lottery_outputs.dart
DA:14,0
DA:30,0
DA:37,0
DA:39,0
DA:40,0
DA:42,0
DA:43,0
DA:44,0
DA:45,0
DA:46,0
DA:47,0
DA:48,0
DA:51,0
DA:53,0
DA:54,0
DA:56,0
DA:57,0
DA:58,0
DA:59,0
DA:66,0
DA:67,0
DA:69,0
DA:72,0
DA:74,0
DA:76,0
DA:77,0
DA:80,0
DA:83,0
DA:104,0
DA:110,0
DA:112,0
DA:113,0
DA:114,0
DA:115,0
DA:116,0
DA:117,0
DA:119,0
DA:120,0
DA:121,0
DA:123,0
DA:125,0
DA:127,0
DA:129,0
DA:130,0
DA:131,0
DA:132,0
DA:133,0
DA:139,0
DA:140,0
DA:141,0
DA:142,0
DA:143,0
DA:144,0
DA:158,0
DA:159,0
DA:160,0
DA:161,0
DA:163,0
DA:164,0
LF:59
LH:0
end_of_record
SF:lib\src\view\widgets\lottery_random_pick.dart
DA:10,0
DA:18,0
DA:19,0
DA:27,0
DA:28,0
DA:30,0
DA:31,0
DA:32,0
DA:34,0
DA:37,0
DA:38,0
DA:40,0
DA:47,0
DA:49,0
DA:50,0
DA:52,0
DA:54,0
DA:55,0
DA:56,0
DA:57,0
DA:58,0
DA:59,0
DA:61,0
DA:62,0
DA:63,0
DA:64,0
DA:69,0
DA:70,0
DA:72,0
DA:73,0
DA:74,0
DA:75,0
LF:32
LH:0
end_of_record
43 changes: 43 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
33 changes: 33 additions & 0 deletions example/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "300451adae589accbece3490f4396f10bdf15e6e"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 300451adae589accbece3490f4396f10bdf15e6e
base_revision: 300451adae589accbece3490f4396f10bdf15e6e
- platform: macos
create_revision: 300451adae589accbece3490f4396f10bdf15e6e
base_revision: 300451adae589accbece3490f4396f10bdf15e6e
- platform: windows
create_revision: 300451adae589accbece3490f4396f10bdf15e6e
base_revision: 300451adae589accbece3490f4396f10bdf15e6e

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
16 changes: 16 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# example

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
28 changes: 28 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
3 changes: 3 additions & 0 deletions example/assets/data_test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
10;13;14;25;1;35;5
1;16;19;6;39;37;2
1;6;25;14;33;39;2
Loading

0 comments on commit 64b5b3e

Please sign in to comment.